%configure and RPM_OPT_FLAGS
Elliot Lee
sopwith at redhat.com
Tue Jul 29 15:41:44 UTC 2003
On 29 Jul 2003, Harald Hoyer wrote:
> 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}"
This part already happens automatically and is unnecessary.
> 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??
If it is safe to assume that $RPM_OPT_FLAGS is only ever used in %build,
then please commit the change to redhat-rpm-config in devel CVS, and build
the update into dist-3.0E and dist-10.
-- Elliot
Humpty Dumpty was pushed.
More information about the fedora-devel-list
mailing list