[Unbound-users] CFLAGS are ignored/overridden in build environment
Paul Wouters
paul at xelerance.com
Tue Oct 21 16:03:45 UTC 2008
Hi,
On Fedora 9 (x86_64) the CFLAGS as set by the build environment (eg
rpmbuild) is lost and replaced with unbound's own settings as deduced
by its configure command. On Fedora (x86_64) this means we lose:
-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
I worked around this by using the following build section:
%build
%{__make} CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" QUIET=no %{?_smp_mflags}
Note that I had to hardcode -D_GNU_SOURCE, because when passing CFLAGS, this
unbound specific flag is lost.
It would be nice if the build environment picked up the environment CFLAGS
and merged in its own specific needs :)
If you want to grab the package under review, see:
https://bugzilla.redhat.com/show_bug.cgi?id=447847
Paul
More information about the Unbound-users
mailing list