[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: passing parameters to libtool
From: |
tchize |
Subject: |
Re: passing parameters to libtool |
Date: |
Tue, 30 May 2006 21:15:43 +0200 |
User-agent: |
Mozilla Thunderbird 1.0.7 (X11/20051013) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Yes, great, very fast thank you, i hope we can continue getting this
fast :)
But does not work :/
Relevant Makefile.am section:
#note all .a are here twice for compilation problems
AM_LIBTOOLFLAGS= --preserve-dup-deps
LDADD = ../../../server/libserver.a \
../../../common/libcross.a \
../../../random_maps/librandom_map.a \
../../../socket/libsocket.a \
../../../server/libserver.a \
../../../common/libcross.a \
../../../random_maps/librandom_map.a \
../../../socket/libsocket.a \
$(LIBDL) @CHECK_LIBS@
I checked twice, i reran
libtoolize -f -c
mv -f ltmain.sh utils
aclocal
autoheader
automake -a -c
autoconf
./configure
make
and Makefile does now indeed contain a reference to AM_LIBTOOLFLAGS
runtime called made by make
/bin/sh ../../../libtool --tag=CC --mode=link gcc -g -O2 -o
check_shop check_shop.o ../../../server/libserver.a
../../../common/libcross.a ../../../random_maps/librandom_map.a
../../../socket/libsocket.a ../../../server/libserver.a
../../../common/libcross.a ../../../random_maps/librandom_map.a
../../../socket/libsocket.a -ldl -lcheck -lcrypt -lm -lnsl
You see , flag is not there! :)
Another solution?
Thanks
David Delbecq
Ralf Wildenhues a écrit :
> Hi David,
>
> * tchize wrote on Tue, May 30, 2006 at 08:34:16PM CEST:
>
>> am using autoconf / automake in a project. We have a problem with
>> some static library compilation leading to us needing to pass
>> parameters to libtool call at link time. We need to pass it the
>> --preserve-dup-deps parameters. However, i found nowhere in
>> automake docs how to do this. All automake docs states is that
>> libtool is fully integrated since 1.2, but no info on how to pass
>> additionnal parameters.
>
>
> Per-Makefile: AM_LIBTOOLFLAGS = --preserve-dup-deps
>
> or per-target with *_LIBTOOLFLAGS.
>
> (And yes, it is very inconsistent that this flag must be passed
> before the --mode, and not after the compiler, where *LDFLAGS go.
> TODO item.)
>
>> Need infos on it, this is quite important, our project is
>> currently blocked until we resolve this compilation issue. Some
>> of our developper are waiting for this soluce :)
>
>
> Well, was that fast enough? ;-)
>
> (You may still have troubles getting what you want; but to help
> more, we need to see more, like the corresponding Makefile.am
> parts.)
>
> Cheers, Ralf
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFEfJnfHHGOa1Q2wXwRAs0kAKC9wL16+e7bknZqpD6QOobfhpSqqACgpGn7
tmqpKP1E9cdQE8Eg43/ara4=
=6XXB
-----END PGP SIGNATURE-----