]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (archive_cmds, archive_expsym_cmds) [solaris*]: Revert
authorGary V. Vaughan <gary@gnu.org>
Sat, 8 Sep 2001 02:50:07 +0000 (02:50 +0000)
committerGary V. Vaughan <gary@gnu.org>
Sat, 8 Sep 2001 02:50:07 +0000 (02:50 +0000)
my 2001-09-06 patch.
(no_undefined_flag)i [solaris*]: Revert Alexandre's 2001-04-11 patch.

libtool.m4

index ed698d5dba620cef756dc81d0917f9efeb8863d7..f86946e086483f0782c10cac1ad69fb710040ea5 100644 (file)
@@ -24,8 +24,6 @@
 
 # serial 46 AC_PROG_LIBTOOL
 
-builtin([undefine],[symbols])
-
 AC_DEFUN([AC_PROG_LIBTOOL],
 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
 
@@ -1709,12 +1707,12 @@ else
     ;;
 
   solaris*)
-    no_undefined_flag=' -z defs'
+    no_undefined_flag=' -z text'
     # $CC -shared without GNU ld will not create a library from C++
     # object files and a static libstdc++, better avoid it by now
-    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags `test "x$allow_undefined_flag" = "x$no_undefined_flag" && $CC --print-libgcc-file-name`'
+    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
-               $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags `test "x$allow_undefined_flag" = "x$no_undefined_flag" && $CC --print-libgcc-file-name`~$rm $lib.exp'
+               $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
     hardcode_libdir_flag_spec='-R$libdir'
     hardcode_shlibpath_var=no
     case $host_os in