Cross compiling xorg 7.7
Paul Bender
pebender at san.rr.com
Tue Dec 11 22:25:52 PST 2012
On 12/10/2012 7:23 AM, Leblanc-Lebeau, Francis wrote:
> Hi everyone !
>
> I am trying to cross compile xorg 7.7 and I am having libtool errors
> when compiling libs, especially with libfixes and libX*
>
> For some reason, libs that doesn’t have libtool script tlmain.sh v2.4.2
> can’t parse its internal dependency_libs correctly and give this error
> when linking (see below).
>
> I have a workaround for the libs using libtool 2.4: I patched ltmain.sh
> form another library, using ltmain v2.4.2, and everything is fine. But
> for libs like libXfixes using libtool 2.2.6, I can’t patch ltmain.sh
>
> Here’s an example using package libXfixes-5.0, Using Centos 6.3
>
> ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
> --with-sysroot=/opt/verint/velix/i686/target --build=i686-pc-linux-gnu
> --host=i686-unknown-linux-gnu CC=i686-unknown-linux-gnu-gcc
> AR=i686-unknown-linux-gnu-ar RANLIB=i686-unknown-linux-gnu-ranlib
> LD=i686-unknown-linux-gnu-ld CPP=i686-unknown-linux-gnu-cpp
>
> make
>
> […]
>
> CCLD libXfixes.la
>
> libtool: link: warning: library
> `/opt/verint/velix/i686/target/usr/lib/libX11.la' was moved.
>
> ../libtool: line 6727: cd: =/usr/lib: No such file or directory
>
> libtool: link: warning: cannot determine absolute directory name of
> `=/usr/lib'
>
> /bin/grep: =/usr/lib/libxcb.la: No such file or directory
>
> /bin/sed: can't read =/usr/lib/libxcb.la: No such file or directory
>
> What can I do about those libs ?
My experience has been the *.la files tend to do more harm than good. As
a result, when I cross compile, I make sure that when I build and
install a package, I delete the *.la files that the package installs.
More information about the xorg
mailing list