This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

./configure options passed to rpm-package target?

0

I just noticed that the RPM spec file has its own set of ./configure options. This made me question whether support for different options that I run prior to running "make" and "make rpm-package" aren't being passed to the RPM build process.

I tried to add the same "--with-XXXX" options to the file in its ./configure section manually, but the build process ended prematurely because it said the options were not recognized options.

Any insight?

asked 22 Jan '14, 13:05

jorwex's gravatar image

jorwex
6335
accept rate: 0%


One Answer:

0

Hmm interesting must have been something I did wrong.

This worked:

%configure \
  --with-gnu-ld \
%if %{with_c_ares}
  --with-c-ares \
%endif
%if %{with_adns}
  --with-adns \
%endif
%if %{with_lua}
  --with-lua \
%endif
%if %{with_portaudio}
  --with-portaudio \
%endif
%if %{with_gtk3}
  --with-gtk3 \
%endif
  --without-zlib --disable-warnings-as-errors
This didn't:
%configure \
  --with-gnu-ld \
  --without-zlib \ 
%if %{with_c_ares}
  --with-c-ares \
%endif
%if %{with_adns}
  --with-adns \
%endif
%if %{with_lua}
  --with-lua \
%endif
%if %{with_portaudio}
  --with-portaudio \
%endif
%if %{with_gtk3}
  --with-gtk3 \
%endif
  --disable-warnings-as-errors

answered 22 Jan '14, 13:12

jorwex's gravatar image

jorwex
6335
accept rate: 0%

edited 22 Jan '14, 14:34

Jaap's gravatar image

Jaap ♦
11.7k16101