Multiple dependant library
Hi, I am trying to setup an automake script to build 3 library which each one, except the first, depends on the others preceding libraries (they are IL,ILU and ILUT). the folder are disposed like this, with the main makefile in the root directory src-IL/ src-ILU/ src-ILUT/ actually to accomplish this the ld flags had these line for ILU: -L$(top_srcdir)/src-IL/src and these for ILUT: -L$(top_srcdir)/src-IL/src -L$(top_srcdir)/src-ILU/src But the produced library would have the building path store inside them. Here is an example of a grep: Il file binario libIL.so corrisponde Il file binario libIL.so.1 corrisponde Il file binario libIL.so.1.0.0 corrisponde libILU.la:dependency_libs=' -L/home/dario/workspace/DevIL/src-IL/src /usr/local/DevIL/lib/libIL.la -lpng12 /usr/lib/libjpeg.la /usr/lib/libmng.la -L/usr/lib /usr/lib/libjpeg.la /usr/lib/liblcms.la -lm -lz' Il file binario libILU.so corrisponde Il file binario libILU.so.1 corrisponde Il file binario libILU.so.1.0.0 corrisponde libILUT.la:dependency_libs=' -L/home/dario/workspace/DevIL/src-IL/src -L/home/dario/workspace/DevIL/src-ILU/src -L/usr/lib /usr/lib/libSDL.la /usr/lib/libasound.la /usr/lib/libartsc.la -L/usr/share/qt3/lib /usr/lib/libgmodule-2.0.la -ldl /usr/lib/libgthread-2.0.la /usr/lib/libglib-2.0.la /usr/lib/libesd.la /usr/lib/libaudiofile.la -laudio -lXt -lXext /usr/lib/libaa.la -lncurses -lslang -lX11 -lpthread /usr/local/DevIL/lib/libILU.la /usr/local/DevIL/lib/libIL.la -lpng12 /usr/lib/libjpeg.la /usr/lib/libmng.la /usr/lib/libjpeg.la /usr/lib/liblcms.la -lm -lz -lGLU' Il file binario libILUT.so corrisponde Il file binario libILUT.so.1 corrisponde Il file binario libILUT.so.1.0.0 corrisponde Is there any way to solve this?
Re: Multiple dependant library
Hi Dario, * Dario Meloni wrote on Tue, May 30, 2006 at 12:40:22AM CEST: > Hi, > I am trying to setup an automake script to build 3 library which each > one, except the first, depends on the others preceding libraries (they > are IL,ILU and ILUT). > > the folder are disposed like this, with the main makefile in the root > directory > src-IL/ > src-ILU/ > src-ILUT/ > > actually to accomplish this the ld flags had these line for ILU: > -L$(top_srcdir)/src-IL/src > > and these for ILUT: > -L$(top_srcdir)/src-IL/src > -L$(top_srcdir)/src-ILU/src Since they are in the same build tree, you should write instead ../src/IL/src/libIL.la ../src/ILU/src/libILU.la Then everything will work as intended. Cheers, Ralf