Lennon Cook wrote:
When attempting to compile wmii-2, I get the following error:

/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status

I notice that if I manually do 'ld -lX11', I get the same error, but
if I do 'ld -L /usr/X11R6/lib -l X11', a.out is created properly.
However, in config.mk, it appears as though the '-L ...' should be
passed:
LIBS        = -L${LIBDIR} -L/usr/lib -lc -lm -L${X11DIR}/lib -lX11
LDFLAGS     = -g ${LIBS}

I also tried setting up an alias 'ld = ld -L/usr/X11R6/lib' before the
build, but no such luck: it causes a manual 'ld -lX11' to work well,
but the build isn't affected.
/usr/X11R6/lib is in /etc/ld.so.conf (and ldconfig has been run), but
this doesn't seem to have any effect.
How else could I tell ld where to look?


maybe try passing LDFLAGS=-lX11 as an argument to make? It's worth a try

make LDFLAGS=-lX11
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to