When user provides a CFLAGS at configure-time, keep it.
# 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)], [
--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}