Define a HAVE_GNUC_VISIBILITY automake conditional.
authorMatthias Clasen <mclasen@redhat.com>
Sat, 5 Feb 2005 03:02:20 +0000 (03:02 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sat, 5 Feb 2005 03:02:20 +0000 (03:02 +0000)
2005-02-04  Matthias Clasen  <mclasen@redhat.com>

* configure.in: Define a HAVE_GNUC_VISIBILITY automake
conditional.

* glib/Makefile.am (TESTS): Only check the abi if
the compiler supports visibility, otherwise we
know there will be (harmless) extra symbols.
(#166181, Ed Avis)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-8
configure.in
glib/Makefile.am
gobject/Makefile.am

index 5e3ba982f961a83ae70fc4e0bf07ad0b67a20e99..eac01c853d8d449fc53bc67e9a9fd91bd4cc37d4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2005-02-04  Matthias Clasen  <mclasen@redhat.com>
+
+       * configure.in: Define a HAVE_GNUC_VISIBILITY automake
+       conditional.
+
+       * glib/Makefile.am (TESTS): Only check the abi if
+       the compiler supports visibility, otherwise we
+       know there will be (harmless) extra symbols.  
+       (#166181, Ed Avis)
+
 2005-02-02  Tor Lillqvist  <tml@novell.com>
 
        * glib/gwin32.h: Remove unnecessary MSVC-only typedef for
index 5e3ba982f961a83ae70fc4e0bf07ad0b67a20e99..eac01c853d8d449fc53bc67e9a9fd91bd4cc37d4 100644 (file)
@@ -1,3 +1,13 @@
+2005-02-04  Matthias Clasen  <mclasen@redhat.com>
+
+       * configure.in: Define a HAVE_GNUC_VISIBILITY automake
+       conditional.
+
+       * glib/Makefile.am (TESTS): Only check the abi if
+       the compiler supports visibility, otherwise we
+       know there will be (harmless) extra symbols.  
+       (#166181, Ed Avis)
+
 2005-02-02  Tor Lillqvist  <tml@novell.com>
 
        * glib/gwin32.h: Remove unnecessary MSVC-only typedef for
index 5e3ba982f961a83ae70fc4e0bf07ad0b67a20e99..eac01c853d8d449fc53bc67e9a9fd91bd4cc37d4 100644 (file)
@@ -1,3 +1,13 @@
+2005-02-04  Matthias Clasen  <mclasen@redhat.com>
+
+       * configure.in: Define a HAVE_GNUC_VISIBILITY automake
+       conditional.
+
+       * glib/Makefile.am (TESTS): Only check the abi if
+       the compiler supports visibility, otherwise we
+       know there will be (harmless) extra symbols.  
+       (#166181, Ed Avis)
+
 2005-02-02  Tor Lillqvist  <tml@novell.com>
 
        * glib/gwin32.h: Remove unnecessary MSVC-only typedef for
index 5e3ba982f961a83ae70fc4e0bf07ad0b67a20e99..eac01c853d8d449fc53bc67e9a9fd91bd4cc37d4 100644 (file)
@@ -1,3 +1,13 @@
+2005-02-04  Matthias Clasen  <mclasen@redhat.com>
+
+       * configure.in: Define a HAVE_GNUC_VISIBILITY automake
+       conditional.
+
+       * glib/Makefile.am (TESTS): Only check the abi if
+       the compiler supports visibility, otherwise we
+       know there will be (harmless) extra symbols.  
+       (#166181, Ed Avis)
+
 2005-02-02  Tor Lillqvist  <tml@novell.com>
 
        * glib/gwin32.h: Remove unnecessary MSVC-only typedef for
index ec42a337519a12146144e90c471a85b122526412..00671c50a867620beb1ee713c8833d25fdd6f315 100644 (file)
@@ -760,6 +760,7 @@ int main (int argc, char **argv)
 }
 ],g_have_gnuc_visibility=yes,g_have_gnuc_visibility=no)
 AC_MSG_RESULT($g_have_gnuc_visibility)
+AM_CONDITIONAL(HAVE_GNUC_VISIBILITY, [test x$g_have_gnuc_visibility = xyes])
 
 # check for bytesex stuff
 AC_C_BIGENDIAN
index 49ed655e103374ec7286b97093c9b388d6601944..b7d8872fd6e58f9c5182f7491dd37cabcbae7c7a 100644 (file)
@@ -20,8 +20,10 @@ galias.h: glib.symbols
          $(PERL) $(srcdir)/makegalias.pl < $(srcdir)/glib.symbols > galias.h
 
 if OS_LINUX
+if HAVE_GNUC_VISIBILITY
 TESTS = abicheck.sh
 endif
+endif
 
 BUILT_SOURCES = galias.h
 
index 33b2ed56771c9841a0906290c6a4ed6114b666e3..18223318efa8556117cd7ff90f2b5c1ec7f8fdd0 100644 (file)
@@ -20,8 +20,10 @@ gobjectalias.h: gobject.symbols
        $(PERL) $(srcdir)/makegobjectalias.pl < $(srcdir)/gobject.symbols > gobjectalias.h
 
 if OS_LINUX
+if HAVE_GNUC_VISIBILITY
 TESTS = abicheck.sh
 endif
+endif
 
 libglib = $(top_builddir)/glib/libglib-2.0.la