[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Issue with libtool when cross-compiling
From: |
Thomas Petazzoni |
Subject: |
Re: Issue with libtool when cross-compiling |
Date: |
Fri, 12 Feb 2010 19:34:24 +0100 |
Hello Richard,
Thanks for your input!
On Fri, 12 Feb 2010 16:00:49 +0000
Richard Purdie <address@hidden> wrote:
> libtool has known cross compile issues and doesn't get on well with
> sysroots.
>
> I maintain the OpenEmbedded libtool patch set which at least lets us
> work around the worst libtool issues. The main patch is:
>
> http://git.pokylinux.org/cgit.cgi/poky/tree/meta/packages/libtool/libtool-2.2.6/cross_compile.patch
>
> and there is a bugfix I've been meaning to look at in more detail
> which became neccessary with recent autoconf/automake versions:
>
> http://git.pokylinux.org/cgit.cgi/poky/tree/meta/packages/libtool/libtool-2.2.6/trailingslash.patch
>
> where a trailing slash on paths causes a string comparison to fail. We
> also apply:
>
> http://git.pokylinux.org/cgit.cgi/poky/tree/meta/packages/libtool/libtool-2.2.6/prefix.patch
>
> which renames libtool and allows us to easily tell when the wrong
> (unpatched) libtool is being used.
I suppose you apply these modifications to a libtool that you are
compiling. However, libtool is typically already embedded in each
upstream tarball. Do you run autoreconf on all packages, so that a
newer libtool script gets generated (autoreconf-ing each package takes a
lot of time) ? Do you somehow replace the provided libtool by a fixed
one ?
Moreover, some packages use libtool 1.5.x and some newer packages use
libtool 2.2.x. How do you handle this version difference ?
> There are other workarounds we have to apply after installing
> packages, particularly modifying the .la files to be uninstalled to
> get the sysroot to work properly.
« to be uninstalled » ?
In Buildroot, we already modify the libdir='' in all the .la files so
that they refer to the sysroot instead of /usr/lib.
If possible, could you point me to the location in OpenEmbedded where
libtool is handled ? I already had a look at your patches, but don't
understand how you re-generate the libtool script inside the different
upstream packages.
Thanks!
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com