%configure and RPM_OPT_FLAGS

Harald Hoyer harald at redhat.com
Tue Jul 29 15:36:30 UTC 2003


I wanted to modify CXXFLAGS and stumbled across the %configure
definition...
CFLAGS="${CFLAGS:-%optflags}" 
CXXFLAGS="${CXXFLAGS:-%optflags}"
FFLAGS="${FFLAGS:-%optflags}"


Wouldn't it be better to have this in /usr/lib/rpm/redhat/macros:

RPM_OPT_FLAGS="%{optflags}"

CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" 
CXXFLAGS="${CXXFLAGS:-${RPM_OPT_FLAGS}}" 
FFLAGS="${FFLAGS:-${RPM_OPT_FLAGS}}"

so that I can modify RPM_OPT_FLAGS prior to calling %configure??

-- 
Harald Hoyer, Senior Software Engineer  Harald.Hoyer at redhat.de
Red Hat GmbH                       Tel. : +49-711-96437-0
D-70178 Stuttgart, Germany         Web  : http://www.redhat.de
gpg fingerprint E930 20E6 CCF8 C76C 8582  CF9F B7B7 45C2 C557 5542
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20030729/c4ae477c/attachment.sig>


More information about the fedora-devel-list mailing list