libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

circular deps in libs and --preserve-dup-deps


From: Matthias Braun
Subject: circular deps in libs and --preserve-dup-deps
Date: Fri, 26 Apr 2002 20:47:37 +0200 (CEST)

Hi,

after an upgrade to libtool 1.4d I have problems with a non libtool
package that has libs with circular deps.

Problem1:
        To preserve these duplicate libs, I need to give
--preserve-dup-deps on the libtool commandline. How do I do this in
Makefile.am? myapp_LDFLAGS = --preserve-dup-deps, doesn't work because the
flags are appended too late and are interpreted as compiler flags...
For now I included this hack in my configure.in, but I assume there are
cleaner solution?

AM_PROG_LIBTOOL

LIBTOOL="$LIBTOOL --preserve-dup-deps"
AC_SUBST(LIBTOOL)



Problem2:
Even with --preserver-dup-deps it doesn't work. I have no exact idea why,
but it seems to destroy the order...
This is the input:

... ../../src/common/net/libpsnet.la ../../src/common/sal/libsal.la
../../src/common/engine/libpsengine.la ../../src/common/util/libpsutil.la
../../src/common/psbehave/libpsbehave.la
-L/home/matze/progr/CS/out/LINUX/X86/debug -lcsengine -lcsgeom -lcsgfx
-lcsutil -lcstool -lcssys  -lcsgeom -lcsutil -ldl -lm -lz

and this the output:

../../src/common/net/.libs/libpsnet.a -L/usr/lib/gcc-lib/i386-linux/2.95.4
-lm -lgcc -lgcc ../../src/common/sal/.libs/libsal.a -lm -lgcc -lgcc
../../src/common/engine/.libs/libpsengine.a
-L/home/matze/progr/CS/out/LINUX/X86/debug -lcsgeom -lcsutil -lcsgeom
-lcsutil -lm -lm -lgcc -lgcc ../../src/common/util/.libs/libpsutil.a -lm
-lgcc -lgcc ../../src/common/psbehave/.libs/libpsbehave.a -lcsgeom
-lcsutil -lcsgeom -lcsutil -lm -lstdc++ -lm -lgcc -lc -lgcc -lcsengine
-lcsgeom -lcsgfx -lcsutil -lcstool -lcssys -lcsgeom -lcsutil -ldl -lm -lz


and now I get many unresolved symbols... the old libtool version just
preserved my input and it worked well.

Hope someone can gimme a hint.
Greetings
        Matze






reply via email to

[Prev in Thread] Current Thread [Next in Thread]