Building Modular X
Daniel Stone
daniel at freedesktop.org
Mon May 15 01:35:14 PDT 2006
On Sun, May 14, 2006 at 07:34:27PM -0400, Jaspreet Sachdev wrote:
> I am cross compiling X 7.0 and hitting a problem a with libtool in the
> lib packages. I am installing all the compiled components in a
> non-system directory (for eg /opt/root). I would like the build process
> to link in libraries from my /opt/root directory and not the system
> dirs. Currently, when build libXext.la it needs X11 and Xau libraries.
> These libs are passed into libtool command as "-l" parameters. The
> output shows that it finds X11 in the right directory "/opt/root" but
> Xau it is searching in the system /usr/lib directory. Has anyone
> encountered this problem? I have tried setting LDFLAGS to have "-L"
> and -wl,--rpath-link but none help in finding the right Xau.
>
> /bin/sh ../libtool --mode=link /opt/tools/bin/gcc
> -I/opt/root/usr/include -DMALLOC_0_RETURNS_NULL
> -I/opt/root/usr/include -o libXext.la -rpath
> /usr/lib -version-number 6:4:0 -no-undefined DPMS.lo
> MITMisc.lo XAppgroup.lo XEVI.lo XLbx.lo XMultibuf.lo
> XSecurity.lo XShape.lo XShm.lo XSync.lo XTestExt1.lo
> Xcup.lo Xdbe.lo extutil.lo globals.lo
> -L/opt/root/usr/lib -lX11 -lXau libtool: link: warning: library
> `/opt/root/usr/lib/libX11.la' was moved.
> grep: /usr/lib/libXau.la: No such file or directory
> /bin/sed: can't read /usr/lib/libXau.la: No such file
> or directory
> libtool: link: `/usr/lib/libXau.la' is not a valid
> libtool archive
> make[3]: *** [libXext.la] Error 1
You'll need to use --prefix=/opt/root/usr, not --prefix=/usr and
DESTDIR=/opt/root. Either that, or delete /opt/root/usr/lib/*.la after
every make install.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg/attachments/20060515/62820b3d/attachment.pgp>
More information about the xorg
mailing list