]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
build: keep user-specified CFLAGS
authorVincent Bernat <vincent@bernat.im>
Sun, 21 Feb 2016 13:54:02 +0000 (14:54 +0100)
committerVincent Bernat <vincent@bernat.im>
Sun, 21 Feb 2016 13:56:42 +0000 (14:56 +0100)
When user provides a CFLAGS at configure-time, keep it.

configure.ac
redhat/lldpd.spec

index 814251473e8f1813ab1432cdffdc30201abca305..e8d3450866b5744bf8ba5c4f8a896aee2fb74def 100644 (file)
@@ -171,9 +171,6 @@ AC_REPLACE_FUNCS([strlcpy
 # Optional functions
 AC_CHECK_FUNCS([setresuid setresgid])
 
-CFLAGS="$_save_CFLAGS"
-LIBS="$_save_LIBS"
-
 # Check for res_init. On OSX, res_init is a symbol in libsystem_info
 # and a macro in resolv.h. We need to ensure we test with resolv.h.
 m4_pushdef([AC_LANG_CALL(C)], [
index 5e1442a154958da5da95ce77de3e254e6c2eac9e..a3fdc7bc3ae830c686162c0d33196ffefb1779ea 100644 (file)
@@ -191,8 +191,7 @@ to adjacent network devices.
    --sysconfdir=%{_sysconfdir} \
    --libdir=%{_libdir} \
    --docdir=%{_docdir}/lldpd \
-   --enable-pie \
-   CFLAGS="$RPM_OPT_FLAGS"
+   --enable-pie
 
 [ -f %{_includedir}/net-snmp/agent/struct.h ] || touch src/struct.h
 make %{?_smp_mflags}