libtool
[Top][All Lists]
Advanced

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

Re: Libtool misfeature on HP-UX


From: Albert Chin
Subject: Re: Libtool misfeature on HP-UX
Date: Sun, 26 May 2002 21:57:07 -0500
User-agent: Mutt/1.2.5i

On Wed, May 22, 2002 at 06:31:41PM +0200, Schleicher Ralph (LLI) wrote:
> ltmain.sh (GNU libtool) 1.4.2 (1.922.2.54 2001/09/11 03:33:37)
> 
> Hi,
> 
> I encountered a problem with Libtool libraries on HP-UX.
> Consider the following (simplified) Makefile.am:
> 
> ----------------
> lib_LTLIBRARIES = libfoo.la libbar.la
> 
> libfoo_la_SOURCES = foo.c
> 
> libbar_la_SOURCES = bar.c
> libbar_la_LDFLAGS = libfoo.la
> ----------------
> 
> When relinking libbar.la for installation, the command sequence is
> 
> ----------------
> libtool: install: warning: relinking `libbar.la'
> cd /home/w3016.5/schleich/tmp/foo; /bin/sh ./libtool --mode=relink \
> gcc -g -O2 -o libbar.la -rpath /usr/local/lib libfoo.la libbar_la-bar.lo
> /usr/ccs/bin/ld -b +h libbar.sl +b /usr/local/lib -o .libs/libbar.sl \
> libbar_la-bar.lo /usr/local/lib/libfoo.sl -lc
> ----------------
> 
> The problem is that libfoo.sl is not subject to dynamic file name lookup
> via the built-in library search path or SHLIB_PATH environment variable
> (LD_LIBRARY_PATH on HP-UX 11.00) because it has been specified as an
> absolute file name and *not* via a -l or -l: switch.  This is a problem
> if you want to make a binary distribution with a different directory
> layout -- just setting SHLIB_PATH does not work.
> 
> I propose to translate the Libtool link command on HP-UX as follows:
> 
> ----------------
> /usr/ccs/bin/ld -b +h libbar.sl +b /usr/local/lib -o .libs/libbar.sl \
> libbar_la-bar.lo /usr/local/lib/libfoo.sl -lc
> /usr/ccs/bin/chatr -l /usr/local/lib/libfoo.sl .libs/libbar.sl >/dev/null
> ----------------

Hmm, this seems like a positive. Does it have any side affects? Have
you made this change and run the test suite against it?

-- 
albert chin (address@hidden)



reply via email to

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