]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool: opt_duplicate_compiler_generated_deps is harmful on Solaris
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Fri, 17 Jan 2014 21:07:52 +0000 (10:07 +1300)
committerGary V. Vaughan <gary@gnu.org>
Fri, 17 Jan 2014 21:07:52 +0000 (10:07 +1300)
Fix for http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452.
* build-aux/ltmain.in (libtool_validate_options): disable the
opt_duplicate_compiler_generated_deps optimization for Solaris2 so
that gcc-4.9+ compiled C++ code with -Wl,-Bdirect on 64-bit Solaris
x86 can avoid unwinding failures caused by accidental mixing of the
libc and libgcc_s unwinders in a single executable.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
build-aux/ltmain.in

index f452e5443e96f1c404819b02f938e64133bc4ef2..3b4e6ec2d6b283f4ed9837ab11a425c8c0e18572 100644 (file)
@@ -497,7 +497,9 @@ libtool_validate_options ()
     test : = "$debug_cmd" || func_append preserve_args " --debug"
 
     case $host in
-      *cygwin* | *mingw* | *pw32* | *cegcc*)
+      # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452
+      # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788
+      *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2*)
         # don't eliminate duplications in $postdeps and $predeps
         opt_duplicate_compiler_generated_deps=:
         ;;