[Rpm-maint] Add HOST_CFLAGS to %configure?

Stanislav Brabec sbrabec at suse.cz
Fri Feb 9 14:23:05 UTC 2007


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: sbrabec at suse.cz
Lihovarská 1060/12                            tel: +420 284 028 966
190 00 Praha 9                                fax: +420 284 028 951
Czech Republic                                http://www.suse.cz/




More information about the Rpm-maint mailing list