]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltcf-c.sh (hardcode_libdir_flag_spec, osf4/osf5): Use ${wl}
authorGary V. Vaughan <gary@gnu.org>
Sun, 8 Apr 2001 11:40:15 +0000 (11:40 +0000)
committerGary V. Vaughan <gary@gnu.org>
Sun, 8 Apr 2001 11:40:15 +0000 (11:40 +0000)
to pass -rpath when compiling with gcc.
Reported by Tim Mooney <mooney@dogbert.cc.ndsu.NoDak.edu>

ChangeLog
ltcf-c.sh

index c6e16f0e1bd37398a36352eea0b2bdb2eac9a1ff..24ba1618ae3cdc025552d44e73bad09c4423c9b0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2001-04-08  Gary V. Vaughan  <gvv@techie.com>
 
+       * ltcf-c.sh (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
index 671a907041a18a77e74b724c69df7b0e3e7207e3..4c493c81fda54e5e53ecc1073cf49f07e064ca8e 100644 (file)
--- a/ltcf-c.sh
+++ b/ltcf-c.sh
@@ -484,13 +484,16 @@ else
     if test "$with_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}${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 ${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'
+
+      # cc supports -rpath directly
+      hardcode_libdir_flag_spec='-rpath $libdir'
     fi
-    hardcode_libdir_flag_spec='-rpath $libdir'
     hardcode_libdir_separator=:
     ;;