hello, now it works! i patched my libtool.m4 as per description (see below), linked my libraries and my binaries. i installed the binaries and started the script (made by ralph) with a little modification (-perm -111) in the install directory of the binaries. now i could move my binaries and libraries (SHLIB_PATH=<new lib-dir>). the binaries runs without an error-message.
thanks for your help johannes -------------------------------- gedas deutschland GmbH Pascalstrasse 11, D-10587 Berlin phone: +49-30-3997-1587 telefax: +49-30-3997-1999 mailto:[EMAIL PROTECTED] http://www.gedas.com > -----Original Message----- > From: Kremp, Johannes > Sent: Thursday, September 26, 2002 4:39 PM > To: 'Schleicher Ralph (LLI)' > Cc: [EMAIL PROTECTED] > Subject: AW: i want to use linker ld with libtool on hpux > > > > thanks for your help, > > i patched my libtool.m4 (libtool 1.4.2) > > --- libtool.m4.orig Tue Sep 11 05:16:01 2001 > +++ libtool.m4 Fri May 31 16:04:09 2002 > @@ -1622,7 +1622,8 @@ > hpux9* | hpux10* | hpux11*) > case $host_os in > hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b > +b $install_libdir -o $output_objdir/$soname $libobjs > $deplibs $linker_flags~test $output_objdir/$soname = $lib || > mv $output_objdir/$soname $lib' ;; > - *) archive_cmds='$LD -b +h $soname +b $install_libdir -o > $lib $libobjs $deplibs $linker_flags' ;; > + *) archive_cmds='$LD -b +h $soname +b $install_libdir +s > -o $lib $libobjs $deplibs $linker_flags~ > + for i in \$deplibs ; do case \$i in /*) > for j in \$i* ; do $echo > +chatr -l \$j $lib ; chatr -l \$j $lib > /dev/null ; done ;; > esac ; done' ;; > esac > hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' > hardcode_libdir_separator=: > > and run aclocal, automake 1.5, autoconf 2.50, configure and make. > > with chatr i saw that i linked against static and dynamic > shared libraries. > but my binaries asked for the static shared libraries > anymore. if possible how get i dynamic shared libraries with libtool? > > johannes > > > > -----Ursprüngliche Nachricht----- > > Von: Schleicher Ralph (LLI) > > [mailto:[EMAIL PROTECTED]] > > Gesendet: Dienstag, 24. September 2002 17:29 > > An: Kremp, Johannes > > Cc: [EMAIL PROTECTED] > > Betreff: Re: i want to use linker ld with libtool on hpux > > > > > > "Kremp, Johannes" <[EMAIL PROTECTED]> writes: > > > > > my binaries are linked against shared libraries. but when > move this > > > libraries in another directory and write this new dirctory in the > > > environment variable SHLIB_PATH the binary does not find the > > > libraries. > > > > That's HP-UX magic. ;-) > > > > > my libtool use the compiler cc to link the binaries. but > > the linker > > > ld has the flags '+s' to force the binary to look into the > > directories > > > listing in SHLI_PATH. > > > > Only for "dynamic" shared libs, not "static" shared libs. > > > > > i think then can i set '+s' to the LDFLAGS of my > binaries, isn't it? > > > > No, you can fix that only by running chatr. I've reported > > this libtool bug (and provided at patch) in March this year. > > Go to the libtool mailing list archive and read the thread > > "libtool misfeature on HP-UX". > > > > You can fix all libtool linked libraries on your system with > > the following script: > > > > >