summaryrefslogtreecommitdiff
path: root/data/glib/visibility.diff
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-01-09 22:21:43 +0000
committerJay Freeman <saurik@saurik.com>2008-01-09 22:21:43 +0000
commit35ef70353227e4dff60fc36437f08293be752b25 (patch)
tree806d29fe3d68433a1c971336dff58863918b2709 /data/glib/visibility.diff
parent03880b546d794abafd6dab3eed876dbefe06c174 (diff)
Factored out --enable-{static=no,shared=yes}, did some extreme porting on pkg-config and libtool, added support for numerous X libraries and a few X applications, and got a solid build of Python with a bunch of modules (compiled as a shared library with the right extensions ;P).
git-svn-id: http://svn.telesphoreo.org/trunk@12 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/glib/visibility.diff')
-rw-r--r--data/glib/visibility.diff41
1 files changed, 41 insertions, 0 deletions
diff --git a/data/glib/visibility.diff b/data/glib/visibility.diff
new file mode 100644
index 000000000..4684e6771
--- /dev/null
+++ b/data/glib/visibility.diff
@@ -0,0 +1,41 @@
+diff -ru glib-2.12.13/configure.in glib-2.12.13+iPhone/configure.in
+--- glib-2.12.13/configure.in 2007-07-16 18:57:18.000000000 +0000
++++ glib-2.12.13+iPhone/configure.in 2008-01-09 13:31:52.000000000 +0000
+@@ -753,36 +753,7 @@
+
+ # check for GNUC visibility support
+ AC_MSG_CHECKING(for GNUC visibility attribute)
+-GLIB_CHECK_COMPILE_WARNINGS([
+-void
+-__attribute__ ((visibility ("hidden")))
+- f_hidden (void)
+-{
+-}
+-void
+-__attribute__ ((visibility ("internal")))
+- f_internal (void)
+-{
+-}
+-void
+-__attribute__ ((visibility ("protected")))
+- f_protected (void)
+-{
+-}
+-void
+-__attribute__ ((visibility ("default")))
+- f_default (void)
+-{
+-}
+-int main (int argc, char **argv)
+-{
+- f_hidden();
+- f_internal();
+- f_protected();
+- f_default();
+- return 0;
+-}
+-],g_have_gnuc_visibility=yes,g_have_gnuc_visibility=no)
++g_have_gnuc_visibility=no
+ AC_MSG_RESULT($g_have_gnuc_visibility)
+ AM_CONDITIONAL(HAVE_GNUC_VISIBILITY, [test x$g_have_gnuc_visibility = xyes])
+