RS6000: Missing EABI symbols at link time

Nick Clifton nickc@redhat.com
Mon Feb 6 16:32:00 GMT 2006


Hi Daniel,

>>Which appears to be related to symbol versioning checks:

> That test is recently added.  It is apparently bogus in this case.  It
> should be skipped for targets that aren't going to build a shared
> library, whatever the appropriate widget is for that; if we aren't
> building a shared libstdc++, then we don't care about symbol
> versioning.

Ah OK that makes a lot of sense.  Do you think that the following patch 
might be acceptable ?  It makes the GLIBCXX_ENABLE_SYMVERS function 
defined in libstdc++-v3/acinclude.m4 check to see whether 'gcc_no_link' 
is set when deciding upon a default value for 'enable_symvers'.  Like 
you I do not know if this is the correct widget to check, but it 
certainly does work.  (After a suitable run of autoconf to regenerate 
the configure file of course).

Cheers
   Nick

Index: libstdc++-v3/acinclude.m4
===================================================================
--- libstdc++-v3/acinclude.m4	(revision 110640)
+++ libstdc++-v3/acinclude.m4	(working copy)
@@ -1877,7 +1877,7 @@
    if test $enable_shared = no || test "x$LD" = x ; then
      enable_symvers=no
    else
-    if test $with_gnu_ld = yes ; then
+    if test $with_gnu_ld = yes && test test x$gcc_no_link = xno ; then
        enable_symvers=gnu
      else
        case ${target_os} in



More information about the Gcc-patches mailing list