[PATCH] Disable visibility on Solaris

Joerg Sonnenberger joerg at britannica.bec.de
Thu Jan 24 12:17:39 PST 2008


Hi,
the attached patch is from Gilles Dauphin for Solaris with GCC 4.
Basically, enabling the symbol visibility on Solaris 10 breaks things
horribly.

Joerg
-------------- next part --------------
$NetBSD: patch-ad,v 1.1 2008/01/24 20:15:20 joerg Exp $

--- Xfuncproto.h.in.orig	2008-01-24 21:05:17.000000000 +0100
+++ Xfuncproto.h.in
@@ -85,7 +85,7 @@ in this Software without prior written a
 # define _X_ATTRIBUTE_PRINTF(x,y)
 #endif /* GNUC >= 4 */
 
-#if defined(__GNUC__) && (__GNUC__ >= 4)
+#if defined(__GNUC__) && (__GNUC__ >= 4) && !defined(__sun__)
 # define _X_EXPORT      __attribute__((visibility("default")))
 # define _X_HIDDEN      __attribute__((visibility("hidden")))
 # define _X_INTERNAL    __attribute__((visibility("internal")))


More information about the xorg mailing list