libtool
[Top][All Lists]
Advanced

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

bi-arch build problem: cannot build 64-bit libs on ppc64


From: Maynard Johnson
Subject: bi-arch build problem: cannot build 64-bit libs on ppc64
Date: Fri, 18 Jan 2008 18:37:27 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910

Hi,
I know this topic has been discussed on the mailing list before, but I've not been able to pick out all of the relevant pieces of information to solve the problem for my particular situation. Hopefully, someone on the list can help.

My platform is ppc64 SLES 10 SP1, libtool version 1.5.24. I have a project built using the standard tools -- aclocal, autoconf, automake. The default configuration builds everything as 32-bit. Prior to integrating libtool into this project, I was also able to build and install 64-bit programs and libraries by prefacing my ./configure command with:
         CFLAGS="-m64" CXXFLAGS=-m64"

I've now integrated libtool into the project. The 32-bit build still works fine, but when I try a 64-bit build (using the technique described above), it fails with:
   gcc -m64 -o urh_int urh_int.o  /usr/lib/libbfd.so -liberty -ldl
   /usr/lib/libbfd.so: could not read symbols: File in wrong format

The urh_int.o was compiled 64-bit, but /usr/lib/libbfd.so is a 32-bit library. If I manually run the above command and replace '/usr/lib/libbfd.so' with '-lbfd', the 64-bit urh_int program is built successfully.

Can someone tell me the extra magic flags I need to set in order to get libtool to do the right thing?

Thanks in advance.

-Maynard





reply via email to

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