mirror of
git://git.savannah.gnu.org/libtool.git
synced 2025-02-23 15:19:27 +08:00
* libtool.m4 (hardcode_libdir_flag_spec, osf4/osf5): Use ${wl}
to pass -rpath when compiling with gcc. Reported by Tim Mooney <mooney@dogbert.cc.ndsu.NoDak.edu>
This commit is contained in:
parent
c0b7dcf2f9
commit
e471e80032
@ -1,5 +1,9 @@
|
||||
2001-04-08 Gary V. Vaughan <gvv@techie.com>
|
||||
|
||||
* libtool.m4 (hardcode_libdir_flag_spec, osf4/osf5): Use ${wl}
|
||||
to pass -rpath when compiling with gcc.
|
||||
Reported by Tim Mooney <mooney@dogbert.cc.ndsu.NoDak.edu>
|
||||
|
||||
* libltdl/ltdl.c (sys_shl_open): Cache a handle for the `self'
|
||||
module, since HPUX adds module symbols into the `self' pool if
|
||||
it is opened later. Return the cached pointer if the caller
|
||||
|
6
libtool.m4
vendored
6
libtool.m4
vendored
@ -1573,14 +1573,16 @@ else
|
||||
if test "$GCC" = yes; then
|
||||
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
||||
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
||||
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
||||
else
|
||||
allow_undefined_flag=' -expect_unresolved \*'
|
||||
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
||||
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
|
||||
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
|
||||
|
||||
#Both c and cxx compiler support -rpath directly
|
||||
hardcode_libdir_flag_spec='-rpath $libdir'
|
||||
fi
|
||||
#Both c and cxx compiler support -rpath directly
|
||||
hardcode_libdir_flag_spec='-rpath $libdir'
|
||||
hardcode_libdir_separator=:
|
||||
;;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user