Article View: gnu.gcc.help
Article #41860Re: in solaris 2.5, which "ld" works with gcc better ?
From: Matus Uhlar
Date: Thu, 08 Feb 1996 00:00
Date: Thu, 08 Feb 1996 00:00
37 lines
1809 bytes
1809 bytes
Z. Zhao (zhao@crl.nmsu.edu) wrote:
-> I have installed gcc 2.7.2 in a sparc/solaris 2.5 system. There is no
-> native 'ld', I mean /usr/bin/ld, in solaris 2.5 as you know, but two
-> old ld's : /usr/ccs/bin/ld and /usr/ucb/ld. Anybody knows Which one
-> would work better with gcc ?
cat /usr/ucb/ld
[stuff]
opts=
LIBS="-lucb -lresolv -lsocket -lnsl -lelf"
if [ $# -gt 0 ]
then
for i in $*
do
case $i in
-r)
LIBS=""
opts="$opts $i"
shift;;
*)
opts="$opts $i"
shift;;
esac
done
fi
LD_RUN_PATH=/usr/ucblib /usr/ccs/bin/ld -YP,:/usr/ucblib:/usr/ccs/lib:/usr/lib $
opts $LIBS
You see...use /usr/ccs/bin/ld. Don't use /usr/ucb stuff, if you need not...
--
Matus Uhlar at Regional node of SANET in Kosice, Slovakia
E-mail: Matus.Uhlar@tuke.sk WWW: http://www.tuke.sk/users/uhlar
IRC: fantomas PGP: finger uhlar@ccnews.ke.sanet.sk | pgp
...I'd like to add something cool here, but I don't know what ;-)
Technical Details
Message-ID:
<4fc7i2$fih@ccnews.ke.sanet.sk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<ZHAO.96Feb2184411@sparta.crl.nmsu.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,87dc9b5a578d0bb7 X-Google-Attributes: gid11318c,public X-Google-Thread: 11035d,87dc9b5a578d0bb7 X-Google-Attributes: gid11035d,public From: uhlar@ccnews.ke.sanet.sk (Matus Uhlar) Subject: Re: in solaris 2.5, which "ld" works with gcc better ? Date: 1996/02/08 Message-ID: <4fc7i2$fih@ccnews.ke.sanet.sk> X-Deja-AN: 138432316 distribution: inet references: <ZHAO.96Feb2184411@sparta.crl.nmsu.edu> followup-to: gnu.gcc.help,comp.unix.solaris organization: Slovak Academic Network Kosice newsgroups: gnu.gcc.help,comp.unix.solaris