[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AW: i want to use linker ld with libtool on hpux
From: |
Kremp, Johannes |
Subject: |
AW: i want to use linker ld with libtool on hpux |
Date: |
Thu, 26 Sep 2002 16:38:32 +0200 |
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:address@hidden
> Gesendet: Dienstag, 24. September 2002 17:29
> An: Kremp, Johannes
> Cc: address@hidden
> Betreff: Re: i want to use linker ld with libtool on hpux
>
>
> "Kremp, Johannes" <address@hidden> 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:
>
>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- AW: i want to use linker ld with libtool on hpux,
Kremp, Johannes <=