According to GNU Coding Standards, CFLAGS and CXXFLAGS should be used for compilation of binaries, which are compiled on host and should be run on target.
While compiling some packages, there are also binaries, which are compiled on host and run also on host as part of compilation process, too. These binaries are not compiled with CFLAGS and CXXFLAGS, but with HOST_CFLAGS and HOST_CXXFLAGS instead. So I guess, that %configure should set HOST_CFLAGS and HOST_CXXFLAGS, too. It can be defined to the same values as CFLAGS resp. CXXFLAGS, or better, rpm should discriminate between "build" and "target" optflags. For compatibility, "target" optflags should keep its name and "build" should be prepended by "build_". I can try to create a patch, which can provide it, if you agree with it. Reference: https://bugzilla.novell.com/show_bug.cgi?id=235723 -- Best Regards / S pozdravem, Stanislav Brabec software developer --------------------------------------------------------------------- SUSE LINUX, s. r. o. e-mail: [EMAIL PROTECTED] Lihovarská 1060/12 tel: +420 284 028 966 190 00 Praha 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ _______________________________________________ Rpm-maint mailing list [email protected] https://lists.rpm.org/mailman/listinfo/rpm-maint
