|
Wrong library search path: msg#00057gnu.libtool.general
When crosscompiling an autoconf/automake project, I pass the target's libary path with "LDFLAGS= -L /compiletarget/lib" as argument for the configure script. But now a libtool script is created, that contains the following variable: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" These paths contain of course the libraries of my workstation, incompatible with the crosscompile target. During the link stage, indeed, things go wrong. The libtool script is called, with --mode=link, and -L/compiletarget/lib, all object files and a library I want to link against: -ltc Now the libtool script replaces -ltc by /usr/lib/libtc.so, it found my workstations version of the library, in the lib_search_path_spec. It should have used /compiletarged/lib/libtc.so instead. Linking fails, the library is not in a valid format for the target. Are there any special things I need to do to tell libtool it is being used in a crossbuild? Or can I influence the value of 'sys_lib_search_path_spec' that will be used? Used versions: autoconf 2.57 libtool 1.4.3 Regards, Pieter |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: relink_command quoting bug: 00057, Scott James Remnant |
|---|---|
| Next by Date: | Re: relink_command quoting bug: 00057, Bob Friesenhahn |
| Previous by Thread: | It's easy and safei: 00057, Gay Fox |
| Next by Thread: | tagdemo-make.test fails: 00057, Lon Canaday |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |