[Top][All Lists]

[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

2. It links with "gcc -shared" even though it was asked to link with

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


libtool-1.5.14> uname -rs   
SunOS 5.8

libtool-1.5.14> LD="/usr/ccs/bin/ld" ./configure --prefix=$HOME/bin
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

libtool-1.5.14> make
 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

reply via email to

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