From: Brian G. <br...@ge...> - 2007-01-23 00:16:30
|
On Jan 16, 2007, at 9:48 PM, Sigrid Roehling wrote: > I have taken a plugin driver and moved it into the player tree as a > regular driver. The driver links with libxml2 and libsdl. During make > I've come across this error: > > g++ -o .libs/player server.o -Wl,--export-dynamic -lm > ../server/libplayerdrivers/.libs/libplayerdrivers.so > ../libplayercore/.libs/libplayercore.so > ../libplayercore/.libs/libplayererror.so > ../libplayertcp/.libs/libplayertcp.so > ../libplayerxdr/.libs/libplayerxdr.so ../replace/.libs/libreplace.a > -lpthread -lnsl -lrt -lz /usr/lib/libltdl.so -ldl /usr/lib/libjpeg.so > -lGL -lGLU -Wl,--rpath -Wl,/usr/local/lib > > Here's what I put in acinclude.m4: > > PLAYER_ADD_DRIVER([facedriver], [yes],[libxml/xmlreader.h SDL/SDL.h > SDL/SDL_opengl.h],[-I/usr/include/libxml2 -I/usr/include/SDL > -D_REENTRANT],[-L/usr/lib -lxml2 -lz -lm -lSDL -lpthread]) That looks correct to me. It seems that your extra link flags are not making it through to the final build. Are you running autoreconf after modifying acinclude.m4? Generally, the procedure for building after you modify any of the meta-Makefile components is: $ autoreconf -i -s $ ./configure $ make You might also try enclosing your linker flags in double-quotes. Quoting and substitution rules get a little tricky when you're that far inside the autotools... brian. |