Scott James Remnant wrote:
On Wed, 2004-01-28 at 14:18, Florian Bachmann wrote:


I am trying to produce a 64bit shared library on a IRIX 6.5 (MIPS4)
machine using the GNU toolchain (gcc, autoconf, automake, libtool).
I am configuring gcc to produce 64bit binaries with CC="gcc -mabi=64".
Libtool correctly picks up the SGI system linker ("/usr/bin/ld"), but
for some reason it will always add the "-n32" option, which instructs
ld to link 32bit binaries. What is the correct way of telling libtool
to run ld with the "-64" option instead?


What happens if you specify "-mabi=64" in CFLAGS instead of changing CC? Does that work?

Scott


Thanks for the quick reply, Scott.

I have experimented with CFLAGS, CXXFLAGS, etc. before but had no success... until I set both CFLAGS _and_ CXXFLAGS to "-mabi=64", which produced the desired results. It seems libtool only scans CFLAGS and not CXXFLAGS. Anyway, it seems to work now. Thank you!



_______________________________________________
Libtool mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/libtool

Reply via email to