From: Peter Eisentraut Date: Tue, 24 Apr 2001 23:40:42 +0000 (+0000) Subject: * libtool.m4: Support $host_os as /sysv5uw7*/ from newer X-Git-Tag: release-1-4~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=569ddb87f0d024059c32d5473a06e21443178d61;p=thirdparty%2Flibtool.git * libtool.m4: 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 e6c5a7783..61a34eb02 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-04-24 Peter Eisentraut + + * libtool.m4: 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 * libtool.m4, ltmain.in, libltdl/configure.in, diff --git a/libtool.m4 b/libtool.m4 index 73082f505..e49652168 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -1734,8 +1734,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 ;;