[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnutls-dev] Please update lib-link.m4
From: |
Andreas Metzler |
Subject: |
[gnutls-dev] Please update lib-link.m4 |
Date: |
Sat, 1 Dec 2007 20:16:47 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Hello,
the old verion of lib-link.m4 (serial 9) in gnutls 2.1.7 results in
adding a unnecessary -L/usr/lib to the link line for every single
found library. (e.g. opencdk or zlib):
(cd /tmp/GNUTLS/gnutls25-2.1.6/libextra; /bin/bash ../libtool --tag=CC
--mode=relink cc -std=gnu99 -g -Wall -O2 -D_REENTRANT -D_THREAD_SAFE -pipe -g
-Wall -O2 -D_REENTRANT -D_THREAD_SAFE -Wno-pointer-sign -no-undefined
-L/usr/lib -lopencdk -L/usr/lib -lgcrypt -L/usr/lib -lgpg-error -L/usr/lib
-lnsl -L/usr/lib -lz -version-info 25:1:0 -llzo2
-Wl,--version-script=./libgnutls-extra.vers -o libgnutls-extra.la -rpath
/usr/lib gnutls_extra.lo gnutls_openpgp.lo gnutls_ia.lo
openpgp/libgnutls_openpgp.la ../lgl/liblgnu.la ../lib/libgnutls.la
-inst-prefix-dir /tmp/GNUTLS/gnutls25-2.1.6/debian/tmp/)
The additional -L/usr/lib causes libtool to choose the wrong -lgnutls,
prefereing the one in /usr/lib (if it exists) over the newly generated
one in DESTDIR/usr/lib.
<http://news.gmane.org/find-root.php?message_id=%3cfpc325%2dbc5.ln1%40argenau.downhill.at.eu.org%3e>
Upgrading lib-link.m4 from serial 9 to serial 13 gets rid of almost all
instances of -L/usr/lib:
(cd /tmp/GNUTLS/gnutls26-2.1.7/libextra; /bin/bash ../libtool --tag=CC
--mode=relink cc -std=gnu99 -g -Wall -O2 -D_REENTRANT -D_THREAD_SAFE -pipe -g
-Wall -O2 -D_REENTRANT -D_THREAD_SAFE -Wno-pointer-sign -no-undefined -lopencdk
-version-info 26:0:0 -llzo2 -Wl,--version-script=./libgnutls-extra.vers -o
libgnutls-extra.la -rpath /usr/lib gnutls_extra.lo gnutls_openpgp.lo
gnutls_ia.lo openpgp/libgnutls_openpgp.la ../lgl/liblgnu.la ../lib/libgnutls.la
-inst-prefix-dir /tmp/GNUTLS/gnutls26-2.1.7/debian/tmp/)
Please upgrade lib-link.m4
thanks, cu andreas
--
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
- [gnutls-dev] Please update lib-link.m4,
Andreas Metzler <=