Building Modular X
Jaspreet Sachdev
js at jisoftsolutions.com
Sun May 14 16:34:27 PDT 2006
Hi,
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
Regards,
Jaspreet
More information about the xorg
mailing list