From: Peter Eisentraut Date: Tue, 24 Apr 2001 23:58:18 +0000 (+0000) Subject: * ltcf-c.sh, ltcf-gcj.sh: Support $host_os as /sysv5uw7*/ from X-Git-Tag: multi-language-merge-point~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=58ca689f396d120dcc9cd46fddc5ef1b418f6cc5;p=thirdparty%2Flibtool.git * 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. --- diff --git a/ChangeLog b/ChangeLog index 737980fde..6ec148ed5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-04-24 Peter Eisentraut + + * 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 * ltdl.m4 (AC_C_INLINE): No longer required. diff --git a/ltcf-c.sh b/ltcf-c.sh index cef1012e8..d9bbae954 100644 --- 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 ;; diff --git a/ltcf-gcj.sh b/ltcf-gcj.sh index 7f31db3e3..dbdb880e9 100644 --- a/ltcf-gcj.sh +++ b/ltcf-gcj.sh @@ -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 ;;