Author: chromatic
Date: Mon Jun  4 12:46:53 2007
New Revision: 18807

Modified:
   trunk/config/auto/gcc.pm

Log:
[Config] Make GCC symbol exporting work on GCC 4.0, where symbol hiding already 
worked.  Yes, this unbreaks things.

Modified: trunk/config/auto/gcc.pm
==============================================================================
--- trunk/config/auto/gcc.pm    (original)
+++ trunk/config/auto/gcc.pm    Mon Jun  4 12:46:53 2007
@@ -247,6 +247,9 @@
         }
     }
 
+    $conf->data->set( sym_export => '__attribute__ ((visibility("default")))' )
+        if $gccversion >= 4.0;
+
     if ( defined $conf->options->get('miniparrot') && $gccversion ) {
 
         # make the compiler act as ANSIish as possible, and avoid enabling
@@ -266,9 +269,6 @@
         HAS_aligned_funcptr => 1
     );
 
-    $conf->data->set( sym_export => '__attribute__ ((visibility("default")))' )
-        if $gccversion > 4.0;
-
     $conf->data->set( HAS_aligned_funcptr => 0 )
         if $^O eq 'hpux';
 

Reply via email to