[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: DESTDIR install on hppa-hpux
From: |
Michael Haubenwallner |
Subject: |
Re: DESTDIR install on hppa-hpux |
Date: |
Mon, 15 Jun 2009 10:56:34 +0200 |
On Sun, 2009-06-14 at 16:21 +0200, Ralf Wildenhues wrote:
> > + Set hardcode_libdir_flag_spec_ld along direct use of $LD only (hpux10).
>
> ... this line is problematic, because ...
Hmm, ...
> > @@ -4713,20 +4716,20 @@ _LT_EOF
> >
> > hpux10*)
> > if test "$GCC" = yes && test "$with_gnu_ld" = no; then
> > - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname
> > ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
> > + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname -o
> > $lib $libobjs $deplibs $compiler_flags'
> > else
> > - _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o
> > $lib $libobjs $deplibs $linker_flags'
> > + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs
> > $deplibs $linker_flags'
> > + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
> > fi
> > if test "$with_gnu_ld" = no; then
> > _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
> > - _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
>
> ... this removed line ...
... this is 'hpux10*', ...
>
> > _LT_TAGVAR(hardcode_libdir_separator, $1)=:
>
> > @@ -4757,9 +4760,9 @@ _LT_EOF
> > # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP
> > does)
> > _LT_LINKER_OPTION([if $CC understands -b],
> > _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
> > - [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b
> > ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
> > - [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir
> > -o $lib $libobjs $deplibs $linker_flags'])],
> > - [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b
> > ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
> > + [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib
> > $libobjs $deplibs $compiler_flags'],
> > + [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs
> > $deplibs $linker_flags'])],
>
> ... is also used for this older 11.00 compiler version (which you
> probably don't have on your systems).
... while this is 'hpux11*', so how can this happen?
Anyway, maybe the usage of $hardcode_libdir_flag_spec_ld in ltmain.m4sh
is problematic instead, as it is unconditionally used if set, even when
$CC (but not $LD) is in $archive_cmds:
6652 if test -n "$hardcode_libdir_flag_spec_ld"; then
6653 eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
6654 else
6655 eval dep_rpath=\"$hardcode_libdir_flag_spec\"
6656 fi
$CC might not understand "+b" directly, which was why I moved setting
hardcode_libdir_flag_spec_ld up to where archive_cmds is set to '$LD',
to not have it set when archive_cmds is '$CC'.
Thanks!
/haubi/