Author: spouliot
Date: 2007-04-03 15:54:03 -0400 (Tue, 03 Apr 2007)
New Revision: 75359
Modified:
trunk/libgdiplus/ChangeLog
trunk/libgdiplus/configure.in
Log:
2007-04-03 Sebastien Pouliot <[EMAIL PROTECTED]>
* configure.in: Add check for visibility ("hidden") attribute (based
on mono's configure.in) to enable hiding libgdiplus internals.
Modified: trunk/libgdiplus/ChangeLog
===================================================================
--- trunk/libgdiplus/ChangeLog 2007-04-03 19:42:26 UTC (rev 75358)
+++ trunk/libgdiplus/ChangeLog 2007-04-03 19:54:03 UTC (rev 75359)
@@ -1,3 +1,8 @@
+2007-04-03 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * configure.in: Add check for visibility ("hidden") attribute (based
+ on mono's configure.in) to enable hiding libgdiplus internals.
+
2007-02-21 Sebastien Pouliot <[EMAIL PROTECTED]>
* configure.in: Disable the "newer" PDF and SVG surface backends as
Modified: trunk/libgdiplus/configure.in
===================================================================
--- trunk/libgdiplus/configure.in 2007-04-03 19:42:26 UTC (rev 75358)
+++ trunk/libgdiplus/configure.in 2007-04-03 19:54:03 UTC (rev 75359)
@@ -162,6 +162,35 @@
AC_DEFINE(HAVE_SIGSETJMP, 1, sigsetjmp is available)
fi
+
+# when possible hide stuff we don't want to export
+AC_MSG_CHECKING(for visibility __attribute__)
+AC_TRY_COMPILE([], [
+ void __attribute__ ((visibility ("hidden"))) doit (void) {}
+ void main () { doit (); }
+], [
+ have_visibility_hidden=yes
+ AC_MSG_RESULT(yes)
+], [
+ have_visibility_hidden=no
+ AC_MSG_RESULT(no)
+])
+
+case "$host" in
+ i*86-*-*)
+ case $host_os in
+ solaris*)
+ # On solaris 10 x86, gcc prints a warning saying
'visibility attribute not supported on this configuration; ignored', but
linking fails.
+ have_visibility_hidden=no
+ esac
+ ;;
+esac
+
+if test "x$have_visibility_hidden" = "xyes"; then
+ AC_DEFINE(HAVE_VISIBILITY_HIDDEN, 1, [Support for the visibility ("hidden")
attribute])
+fi
+
+
AC_ARG_WITH(libjpeg,
[AC_HELP_STRING([--without-libjpeg], [disable JPEG file IO])])
AC_ARG_WITH(libtiff,
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches