On 5/16/12, Armin K. <kre...@email.com> wrote: > On 05/16/2012 10:01 PM, Bruce Dubbs wrote:
>> /bin/sh ../../../libtool --tag=CC --mode=link gcc -I../../../include >> -g -O2 -Wall -pedantic -export-dynamic -o CallbackMaker >> CallbackMaker-CallbackMaker.o ../../../src/libglut.la -lGL -lXext >> -lX11 > That is strange. It might be some bug with pkg-config, that is if > Freeglut is using it. > > pkg-config --libs gl > -lGL > > It should print -L/path/to/libGL.so -lGL since gl.pc contains: > > Libs: -L${libdir} -lGL > > and libdir for my setup is > > libdir=/usr/lib > > You can expand LD_LIBRARY_PATH to $XORG_PREFIX/lib if necesary, but this > issue should be investigated first. Dan was right about ld.so.conf. Like LD_LIBRARY_PATH, it only resolves libraries at run time. The gl.pc file is correct and it is in the plg-config path, but the freeglut demos are quite old and don't use the .pc files. The are two ways I've found to fix this: LDFLAGS="-L/opt/xorg/lib" ./configure ... or export LIBRARY_PATH=$XORG_PREFIX/lib ./configure ... I think I will add the 2nd for for the educational value. I don't think we use it anywhere else. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page