[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Building projects on i386-pc-solaris2.8
From: |
Allan McIntosh |
Subject: |
Re: Building projects on i386-pc-solaris2.8 |
Date: |
Fri, 1 Feb 2002 12:07:27 -0500 |
On the solaris machine there are 3 linkers:
/opt/sfw/bin/ld
/usr/ucb/ld
/usr/ccs/bin/ld
If I do a `which ld` it returns /opt/sfw/bin/ld
/opt/sfw/bin/c++
address@hidden 11:57:49 src]# ls -la /opt/sfw/bin/c++
-r-xr-xr-x 2 root bin 74868 May 21 2001 /opt/sfw/bin/c++
address@hidden 11:58:06 src]# /opt/sfw/bin/c++ -v
Reading specs from /opt/sfw/lib/gcc-lib/i386-pc-solaris2.8/2.95.3/specs
gcc version 2.95.3 20010315 (release)
Then if I simply compile from the command line:
c++ -o libagent.so -fPIC -L/usr/local/lib -G Agent.o AgentObject.o
AgentObjectLinux.o AgentObjectFactory.o Vector.o Attribute.o
SharedLibrary.o SharedLibraryMgr.o Storage.o StorageFile.o
AttributeContainer.o ObjectContainer.o AgentObjectVersion.o ODParser.o
XMLParser.o XMLItem.o md5.o -lcrypt -ldl -lltapi12 -lltstd12 -lz
The library builds fine. But if I use libtool to build it. I get
many undefined symbols.
The libtool script has:
LD="/usr/ccs/bin/ld"
If i change LD="/opt/sfw/bin/ld" is that enough? Or must I define
LD_RUN_PATH and recompile libtool?
any suggestions?
Thanks in advance.