libtool
[Top][All Lists]
Advanced

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

Re: Problem building 32-bit and 64-bit binaries on Mac OS X 10.6.4


From: Elvis Dowson
Subject: Re: Problem building 32-bit and 64-bit binaries on Mac OS X 10.6.4
Date: Mon, 13 Sep 2010 03:31:49 -0700 (PDT)


Elvis Dowson wrote:
> 
> 
> I'm unable to build libtool as binary that includes both 32-bit and 64-bit
> intel architecture on Mac OS X 10.6.4 using gcc-4.0.1, and get the
> following error:
> 
> gcc-4.0: -E, -S, -save-temps and -M options are not allowed with multiple
> -arch flags
> 
> 

The solution is to add the --disable-dependency-tracking option to the
configure command as follows:

./configure CC='/usr/bin/gcc-4.0' CPP='/usr/bin/cpp-4.0'
CXX='/usr/bin/g++-4.0' CXXCPP='/usr/bin/cpp-4.0' CFLAGS='-arch i386 -arch
x86_64' CPPFLAGS='-arch i386 -arch x86_64' CXXFLAGS='-arch i386 -arch
x86_64' LDFLAGS='-arch i386 -arch x86_64' --disable-dependency-tracking

$ make -j 6
$ sudo make install
$ cd ../

$ file /usr/local/lib/libltdl.dylib

/usr/local/lib/libltdl.dylib: Mach-O universal binary with 2 architectures
/usr/local/lib/libltdl.dylib (for architecture i386):   Mach-O dynamically
linked shared library i386
/usr/local/lib/libltdl.dylib (for architecture x86_64): Mach-O 64-bit
dynamically linked shared library x86_64

-- 
View this message in context: 
http://old.nabble.com/Problem-building-32-bit-and-64-bit-binaries-on-Mac-OS-X-10.6.4-tp29696308p29696752.html
Sent from the Gnu - Libtool - Discuss mailing list archive at Nabble.com.




reply via email to

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