[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Incorrect libtool built when cross compiling under Mac OSX

From: Rudolf Leitgeb
Subject: Re: Incorrect libtool built when cross compiling under Mac OSX
Date: Thu, 18 Dec 2008 12:14:33 +0100

This report properly belongs on the bug-libtool list, not the bug- autoconf list,
CCing both, please remove bug-autoconf when you reply.

No problem. I assumed it was an autoconf problem, because configure
generated this libtool. Oh, well, sorry for my confusion.

I assume that you are doing something like ./configure CC='gcc -arch ppc'
CXX='g++ -arch ppc' --host=ppc-apple-darwin9.5.0 ?

Sort of. I did export CFLAGS="-O3 -arch $arch"; export CXXFLAGS=$CFLAGS;
./configure --build=i386-apple-darwin --host=${arch}-apple-darwin
with different versions for arch: i386, x86_64, ppc and ppc64.

But it looks like that's the same thing, the same problem getting triggered.

Libtool, when looking for a name lister, checks for host = build, and if so, checks for plain old nm as well as ppc-apple-darwin9.5.0-nm, if build != host, it only looks for ppc-apple-darwin9.5.0-nm. I agree that this is a bug.
You can workaround by setting NM=/usr/bin/nm for configure.

Great, this workaround does the trick! Could you please drop me a note
if there's a new version of autoconf to be downloaded? As far as I understand
this is what I have to update.

Cheers & Thanks!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]