[Top][All Lists]

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

hppa*64* and dependent libraries

From: Albert Chin
Subject: hppa*64* and dependent libraries
Date: Sat, 14 Dec 2002 03:22:42 -0600
User-agent: Mutt/1.4i

Dependent libraries for hppa64* is funky.

$ cd /tmp/a
$ ld -b +h -o obj1.o obj2.o -lc
$ elfdump -L | head
0       Needed   libc.2
1       Soname
$ cd /tmp/b
$ ld -b +h -o ../a/ obj3.o obj4.o -lc
$ elfdump -L | head
0       Needed
1       Needed   libc.2
2       Soname
$ cd /tmp
$ ld -b +h -o a/ b/ obj5.o
ld: Can't find dependent library ""
$ ld -b +h -o -La b/ obj5.o

According to
 * All DT_NEEDED entries with no "/" in the libname are subject to
   dynamic path lookup.

We have two possible solutions:
  (1) ld -b +h -o -L/tmp/a ../a/ obj3.o obj4.o -lc
  (2) ld -b +h -o -L/tmp/a -l1 obj3.o obj4.o -lc

I've confirmed the above behaviour with a post to the HP-UX Developer
Mailing List. It's frustrating that even though we explicitly list
a/ in the link line, it doesn't help.

So, is there anything in libtool to already do this? If not, do we
adopt solution #1 or #2?

albert chin (address@hidden)

reply via email to

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