-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Bob Friesenhahn wrote: | On Thu, 20 Jan 2005, Chris McCraw wrote: | |> this works great, except when creating shared libraries with libtool. |> for some reason, probably a good one but in this case ill-fated, when |> libtool links a shared a library, it ignores my $CFLAGS, wherein i point |> gcc to a custom specs file which contains my -R / -L directives. i |> remedy |> the situation by hacking the libtool script to include |> "-specs /path/to/my/specsfile" after both occurrences of "-shared", which |> works fine. | | | Linker options are supposed to be passed via LDFLAGS rather than | CFLAGS. I don't believe that libtool knows anything about a -specs | option. It does know about -L and -R options passed on the libtool | command line. It seems likely that -Wl,-specs,/path/to/my/specsfile | will work. |
Alternatively, you could do CC="gcc -specs /path/to/file" before configuring.
Peter - -- Peter O'Gorman - http://www.pogma.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (Darwin)
iQCVAwUBQfBswLiDAg3OZTLPAQJ1nQP/XKXNaI8meRg0mPX9ktPLKKaNitZuMTdK JHVbV7Zo6oVxIFvCccLFaiCXVPaPWDNyDDfL5LkoHAopvunZRftEmeqNgScigZ6F i7FDBAujqAe3G4ZMkg21zEmkSnPrOug/pIWETAa5zbJDn35jY8f0QlxCO7sfo1+p ZCrglPuSiec= =U4b/ -----END PGP SIGNATURE-----
_______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool
