libtool-patches
[Top][All Lists]
Advanced

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

Add sysroot_path for cross compiling in libtool-1.5.10


From: Julian Chu
Subject: Add sysroot_path for cross compiling in libtool-1.5.10
Date: Fri, 5 Dec 2008 23:20:16 +0800
User-agent: Mutt/1.5.15+20070412 (2007-04-11)

Hi,

I have a cross compiling toolchain which use libtool-1.5.10.
The toolchain place binaries, libraries ... in another path
(ex:/usr/local/toolchain/).

However, the *.la files were created with another path, it looks like

$ cat libpng12.la |grep libdir
libdir='/usr/lib'

Actually, the libpng12.la was placed in /usr/local/toolchain/usr/lib.

I had made a patch that let libtoo-1.5.10 support SYSROOT_PATH.
Before people use libtool to cross compilie, he can add a sysroot path
in *libdir* if he export LIBTOOL_SYSROOT_PATH first.

ex: 

$export LIBTOOL_SYSROOT_PATH=/usr/local/foo

Once libtool try to read in libdir='/usr/lib' in la file, it will
replace it with libdir='/usr/local/foo/usr/lib'

I add the patch as attachment.

Best Regards,

-Julian

Attachment: add_sysroot_function.patch
Description: Text Data


reply via email to

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