]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltcf-c.sh, ltcf-gcj.sh: Support $host_os as /sysv5uw7*/ from
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 24 Apr 2001 23:58:18 +0000 (23:58 +0000)
committerGary V. Vaughan <gary@gnu.org>
Tue, 24 Apr 2001 23:58:18 +0000 (23:58 +0000)
newer config.guess in addition to older /unixware*/.  Use
compiler driver, not linker, for linking shared libraries.

ChangeLog
ltcf-c.sh
ltcf-gcj.sh

index 737980fdedc5ee198918621b01da34383828cf7d..6ec148ed54a69961d45339d614095ab1793b50cb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-04-24  Peter Eisentraut  <peter_e@gmx.net>
+
+       * ltcf-c.sh, ltcf-gcj.sh: Support $host_os as /sysv5uw7*/ from
+       newer config.guess in addition to older /unixware*/.  Use
+       compiler driver, not linker, for linking shared libraries.
+                       
 2001-04-24  Gary V. Vaughan  <gvv@techie.com>
 
        * ltdl.m4 (AC_C_INLINE): No longer required.
index cef1012e8922fbb667ab4a1d6c94b71afa516064..d9bbae95441e9f0c55bf9eb72e570ceb2469b2ef 100644 (file)
--- a/ltcf-c.sh
+++ b/ltcf-c.sh
@@ -585,8 +585,13 @@ else
     runpath_var=LD_RUN_PATH
     ;;
 
-  unixware7*)
-    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+  sysv5uw7* | unixware7*)
+    no_undefined_flag='${wl}-z ${wl}text'
+    if test "$GCC" = yes; then
+      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+    else
+      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+    fi
     runpath_var='LD_RUN_PATH'
     hardcode_shlibpath_var=no
     ;;
index 7f31db3e3e4f9b54ca14797735216b9410f83cb4..dbdb880e9b866c6acc8f6d9797acee9d57e6e58c 100644 (file)
@@ -569,8 +569,13 @@ else
     runpath_var=LD_RUN_PATH
     ;;
 
-  unixware7*)
-    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+  sysv5uw7* | unixware7*)
+    no_undefined_flag='${wl}-z ${wl}text'
+    if test "$GCC" = yes; then
+      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+    else
+      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+    fi
     runpath_var='LD_RUN_PATH'
     hardcode_shlibpath_var=no
     ;;