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):
Steps to Reproduce:
1. rpmbuild --rebuild libev-4.11-1.fc19.src.rpm
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:
[... snip ...]
dnl Supply default CFLAGS, if not specified
if test -z "$orig_CFLAGS"; then
if test x$GCC = xyes; then
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:
I'll try submitting all the Fedora patches upstream though.