root / trunk / data / glib / visibility.diff

Revision 12, 1.0 kB (checked in by saurik, 1 year ago)

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).

  • configure.in

    diff -ru glib-2.12.13/configure.in glib-2.12.13+iPhone/configure.in
    old new  
    753753 
    754754# check for GNUC visibility support 
    755755AC_MSG_CHECKING(for GNUC visibility attribute) 
    756 GLIB_CHECK_COMPILE_WARNINGS([ 
    757 void 
    758 __attribute__ ((visibility ("hidden"))) 
    759      f_hidden (void) 
    760 { 
    761 } 
    762 void 
    763 __attribute__ ((visibility ("internal"))) 
    764      f_internal (void) 
    765 { 
    766 } 
    767 void 
    768 __attribute__ ((visibility ("protected"))) 
    769      f_protected (void) 
    770 { 
    771 } 
    772 void 
    773 __attribute__ ((visibility ("default"))) 
    774      f_default (void) 
    775 { 
    776 } 
    777 int main (int argc, char **argv) 
    778 { 
    779         f_hidden(); 
    780         f_internal(); 
    781         f_protected(); 
    782         f_default(); 
    783         return 0; 
    784 } 
    785 ],g_have_gnuc_visibility=yes,g_have_gnuc_visibility=no) 
     756g_have_gnuc_visibility=no 
    786757AC_MSG_RESULT($g_have_gnuc_visibility) 
    787758AM_CONDITIONAL(HAVE_GNUC_VISIBILITY, [test x$g_have_gnuc_visibility = xyes]) 
    788759 
Note: See TracBrowser for help on using the browser.