[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

%configure and RPM_OPT_FLAGS



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 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

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]