Description of problem: When building libev, the build log shows that it's using CFLAGS set to "-g -O3" rather than the ones provided by RPM. Version-Release number of selected component (if applicable): libev-4.11-1.fc19 How reproducible: Always Steps to Reproduce: 1. rpmbuild --rebuild libev-4.11-1.fc19.src.rpm Additional info: It's not the most elegant workaround, but adding 'CFLAGS="$RPM_OPT_FLAGS"' to the command line for 'make' should do the trick. To avoid warnings due to violating strict aliasing rules, a '-fno-strict-aliasing' would probably need to be added to turn off strict aliasing.
Thanks for the bug report Nalin. Looking at configure.ac, I see this: orig_CFLAGS="$CFLAGS" [... snip ...] dnl Supply default CFLAGS, if not specified if test -z "$orig_CFLAGS"; then if test x$GCC = xyes; then CFLAGS="-g -O3" fi fi But looking at the configure script, the orig_CFLAGS="..." line isn't there. The problem is that this line needs to be after AC_INIT, but before AC_PROG_CC (thanks emias in #schmorpforge for the help) I committed the patch to the Rawhide package and rebuilt, see the build.log: http://kojipkgs.fedoraproject.org//work/tasks/8147/4938147/build.log I'll try submitting all the Fedora patches upstream though.
Thanks!