[poky] Is the grammar of .la files changed in new libtool 2.4?

Richard Purdie richard.purdie at linuxfoundation.org
Wed Jan 26 01:40:23 PST 2011


On Wed, 2011-01-26 at 13:56 +0800, Lu, Lianhao wrote:
> I'm wondering whether the grammar of the .la files generated by new
> libtool 2.4 is different from the old ones. Take the file
> libxcb-res.la generated by libxcb for example, it contains a line:
> 
> dependency_libs=' =/usr/lib/libxcb.la =/usr/lib/libXau.la'
> 
> While in the old libxcb.la file, this line appeared to be 
> 
> dependency_libs=' /usr/lib/libxcb.la /usr/lib/libxcb.la'
> 
> Is the "=" a new grammar for liblool 2.4?

Its new, yes and means that the path needs to be prefixed by the
sysroot. Libtool will add that prefix itself automatically if there is a
sysroot set.

>  Because in meta-toolchain, it needs to fix these .la files by
> replacing all the "/usr/lib" to "${SDKTARGETSYSROOT}/usr/lib", etc.
> This new "=" causes the original regular expression not work.

The = should replace the need to make this replacement.

> b.t.w. Do we still need the code in meta-toolchain to fix broken .la
> files? According to my understanding, the new sysroot support in
> libtool 2.4 should solve this problem, right? Thanks!

Correct.

We just have to ensure that libtool 2.4 with fixed sysroot support is
being used (libtool-nativesdk has the fixes).

Cheers,

Richard




More information about the poky mailing list