Please do not reply directly to this email. All additional comments should be made in the comments box of this bug. https://bugzilla.redhat.com/show_bug.cgi?id=480727 --- Comment #27 from Ralf Corsepius <rc040203@xxxxxxxxxx> 2009-01-27 10:20:20 EDT --- (In reply to comment #26) > (In reply to comment #23) > > sed -i -e \ > > "s!^gcc.*\$!%{__cc} ${RPM_OPT_FLAGS} -include /usr/include/errno.h!" > > src/conf-cc > > Wait, this changes the whole command in src/conf-cc, I don't think that's > intended, do you? This is what is intended. It changes the compiler call to acknowledge the settings rpm-packaging expects it to acknowledge. It has the same effect as make CC=%{__cc} CFLAGS="${RPM_OPT_FLAGS} -include /usr/include/errno.h" would have with ordinary Makefiles. Unfortunately DJB's build-system is "special" and doesn't allow overriding settings from the environment, therefore one has to resort to hardcoding settings (which is what this sed call does). > > sed -i -e \ > > "s!^gcc.*\$!%{__cc} ${RPM_OPT_FLAGS}!" src/conf-ld > > How/where do you set this RPM_OPT_FLAGS? RPM_OPT_FLAGS is an rpm internal variable. It contains the CFLAGS all packages are supposed to compile with. -- Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Fedora-package-review mailing list Fedora-package-review@xxxxxxxxxx http://www.redhat.com/mailman/listinfo/fedora-package-review