[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Does libtool support cross compile?
From: |
H . J . Lu |
Subject: |
Does libtool support cross compile? |
Date: |
Fri, 10 May 2002 16:15:45 -0700 |
User-agent: |
Mutt/1.2.5i |
Libtool has been driving me nuts. I tried to cross compile a package which
uses libtool. For some reason, libtool wanted libgdbm.so from /usr/lib:
/bin/sh ../libtool --mode=link mipsel-linux-gcc -Wall -W -O2 -mips2 -fPIC -o
libsasl.la -rpath /usr/lib -version-info 8:8:1 common.lo saslutil.lo server.lo
client.lo md5.lo dlopen.lo checkpw.lo config.lo db_gdbm.lo -lgdbm -ldl -lcrypt
-lpam
rm -fr .libs/libsasl.la .libs/libsasl.* .libs/libsasl.*
mipsel-linux-gcc -shared common.lo saslutil.lo server.lo client.lo md5.lo
dlopen.lo checkpw.lo config.lo db_gdbm.lo /usr/lib/libgdbm.so -ldl -lcrypt
-lpam -Wl,-soname -Wl,libsasl.so.7 -o .libs/libsasl.so.7.1.8
/usr/lib/libgdbm.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
Of course, it won't work. I found
# Compile-time system search path for libraries
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
in libtool. It is completely bogus for cross compile. My cross compiler knows
where the libraries are. I guss I have to put in some kludges to fix the
brain dead libtool.
H.J.
- Does libtool support cross compile?,
H . J . Lu <=