Passing arguments into LDFLAGS
Stephen Gallagher
sgallagh at redhat.com
Wed Sep 22 13:58:59 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 09/22/2010 08:08 AM, Paul F. Johnson wrote:
> Hi,
>
> I know I can do the likes of
>
> export CFLAGS="$CFLAGS -blah" and it will pass whatever CFLAGS is plus
> the argument "-blah" to the compiler.
>
> How do I do this with LDFLAGS. I'm trying to pass --build-id using
>
> export LDFLAGS="$LDFLAGS --build-id"
>
> It's about the only way I can get mono to build currently!
>
> TTFN
>
> Paul
Try
export LDFLAGS="$LDFLAGS -Wl,--build-id"
- -Wl, means "pass the part after the comma directly to the linker"
- --
Stephen Gallagher
RHCE 804006346421761
Delivering value year after year.
Red Hat ranks #1 in value among software vendors.
http://www.redhat.com/promo/vendor/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAkyaC6MACgkQeiVVYja6o6P8YACggeE31YsEfvUr288y/gbndzSz
gVMAn3xWeN1IOcjNogysRM/g326GegEc
=KXwX
-----END PGP SIGNATURE-----
More information about the devel
mailing list