From 1adf109e5dc26e8107b9f080db8d4869431fb81b Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 5 Feb 2005 03:02:20 +0000 Subject: [PATCH] Define a HAVE_GNUC_VISIBILITY automake conditional. 2005-02-04 Matthias Clasen * 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 | 10 ++++++++++ ChangeLog.pre-2-10 | 10 ++++++++++ ChangeLog.pre-2-12 | 10 ++++++++++ ChangeLog.pre-2-8 | 10 ++++++++++ configure.in | 1 + glib/Makefile.am | 2 ++ gobject/Makefile.am | 2 ++ 7 files changed, 45 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5e3ba982f..eac01c853 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2005-02-04 Matthias Clasen + + * 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 * glib/gwin32.h: Remove unnecessary MSVC-only typedef for diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 5e3ba982f..eac01c853 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,13 @@ +2005-02-04 Matthias Clasen + + * 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 * glib/gwin32.h: Remove unnecessary MSVC-only typedef for diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 5e3ba982f..eac01c853 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,13 @@ +2005-02-04 Matthias Clasen + + * 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 * glib/gwin32.h: Remove unnecessary MSVC-only typedef for diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 5e3ba982f..eac01c853 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,13 @@ +2005-02-04 Matthias Clasen + + * 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 * glib/gwin32.h: Remove unnecessary MSVC-only typedef for diff --git a/configure.in b/configure.in index ec42a3375..00671c50a 100644 --- a/configure.in +++ b/configure.in @@ -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 diff --git a/glib/Makefile.am b/glib/Makefile.am index 49ed655e1..b7d8872fd 100644 --- a/glib/Makefile.am +++ b/glib/Makefile.am @@ -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 diff --git a/gobject/Makefile.am b/gobject/Makefile.am index 33b2ed567..18223318e 100644 --- a/gobject/Makefile.am +++ b/gobject/Makefile.am @@ -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