libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libtool] Says that binutils-gold doesn't support -version-script


From: Ralf Wildenhues
Subject: Re: [libtool] Says that binutils-gold doesn't support -version-script
Date: Tue, 24 Nov 2009 12:22:54 +0100
User-agent: Mutt/1.5.20 (2009-08-09)

tags + forwarded upstream patch
thanks

[ See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=554821 ]
[ adding libtool-patches ]

Thanks for the bug report.  Proposed untested patch below.
Can you try it, maybe even run the Libtool test suite with it?
If it works, OK to install and add Peter to THANKS?

Cheers,
Ralf

    Enable symbol versioning with the GNU gold linker.
    
    * libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS): Accept 'GNU gold'
    in the version string.
    * NEWS, THANKS: Update.
    Report by Peter Fritzsche.

diff --git a/NEWS b/NEWS
index 80f0413..7087cdd 100644
--- a/NEWS
+++ b/NEWS
@@ -52,6 +52,7 @@ New in 2.2.8 2009-??-??: git version 2.2.7a, Libtool team:
   - Fix ancient bug where "-Wc," was turned into "$wl" (typically "-Wl,")
     when using the compiler driver to link programs. Now "-Wc," is stripped
     just as it is when linking libraries through the compiler driver.
+  - Symbol versioning works with the GNU gold linker now.
 
 * Miscellaneous changes:
 
diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4
index 1f58a38..417a279 100644
--- a/libltdl/m4/libtool.m4
+++ b/libltdl/m4/libtool.m4
@@ -4339,6 +4339,7 @@ dnl Note also adjust exclude_expsyms for C++ above.
     fi
     supports_anon_versioning=no
     case `$LD -v 2>&1` in
+      *GNU\ gold*) supports_anon_versioning=yes ;;
       *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...




reply via email to

[Prev in Thread] Current Thread [Next in Thread]