%configure and RPM_OPT_FLAGS
Michael Schwendt
ms-nospam-0306 at arcor.de
Tue Jul 29 17:48:28 UTC 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 29 Jul 2003 17:36:30 +0200, 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}"
>
> 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??
Funny you would post it right now. I have just ran into the same
upon trying to override RPM_OPT_FLAGS in the spec file and finding
out that I need to override %{optflags} instead.
[+1 for changing it]
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/JrNs0iMVcrivHFQRAsohAKCDA7kzW1PdSS4vIApX81fdowOa4ACaA3C4
txr6FCwk0J3q0f+6tPIEZrE=
=Pc/x
-----END PGP SIGNATURE-----
More information about the fedora-devel-list
mailing list