bug-libtool
[Top][All Lists]
Advanced

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

Links self with wrong linker


From: Morten Welinder
Subject: Links self with wrong linker
Date: Tue, 5 Apr 2005 15:24:26 -0400

There are two things wrong with the output below:

1. This isn't true: "checking for ld used by gcc... /usr/ccs/bin/ld" 
(This gcc links with
    
/usr/local/gnu/install/gcc/2.9.5.2/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/collect2)

2. It links with "gcc -shared" even though it was asked to link with
/usr/ccs/bin/ld

collect2 does *something* different from /usr/ccs/bin/ld.  As a
consequence I end up with
a library I cannot use.

Morten


libtool-1.5.14> uname -rs   
SunOS 5.8

libtool-1.5.14> LD="/usr/ccs/bin/ld" ./configure --prefix=$HOME/bin
--bindir=$HOME/bin/sun4
[snip]
checking for ld used by gcc... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for BSD-compatible nm... /usr/ccs/bin/nm -p
[snip]

libtool-1.5.14> make
[snip]
 gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c ltdl.c  -fPIC -DPIC -o .libs/ltdl.o
 gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c ltdl.c -o ltdl.o >/dev/null 2>&1
/bin/bash ./libtool --tag=CC --mode=link gcc  -g -O2   -o libltdl.la
-rpath /home/welinder/bin/lib -no-undefined -version-info 4:1:1
ltdl.lo -ldl
gcc -shared -Wl,-h -Wl,libltdl.so.3 -o .libs/libltdl.so.3.1.1 
.libs/ltdl.o  -ldl -lc
[snip]




reply via email to

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