|
From: | Thierry Pierret |
Subject: | Libtool 1.5 - Cross-compilation and library substitution [newbie] |
Date: | Wed, 19 Nov 2008 03:19:04 -0800 (PST) |
I'm trying to port a C++ application on the ARM platform. For that purpose, I'm updating the makefiles in order to use libtool. And I came into trouble. Here is what I did and I would appreciate any help.
Here is the makefile original line (extracted) :
g++ ... -shared ... -o lib_out_sdl.so ... -lccext2 -l... ... `pkg-config --libs sdl`
that I transformed into :
$(SHELL) libtool --mode=link --tag=CXX g++ ...
The normal output of the pkg-config command is :
-Wl,-rpath,/home/navidev/Dev/ltib/rootfs/usr/lib -L/home/navidev/Dev/ltib/rootfs/usr/lib -lSDL -lpthread
Using libtool, I can notice that -lSDL has been replaced with /usr/lib/libSDL.so, which is the wrong library. And only this library option has been replaced. All the other -l options have not been subtituted.
I would like to know where this substitution comes from ? And how to control it ?
Many thanks in advance.
Regards.
[Prev in Thread] | Current Thread | [Next in Thread] |