From: Matthias Clasen Date: Sat, 5 Feb 2005 03:02:20 +0000 (+0000) Subject: Define a HAVE_GNUC_VISIBILITY automake conditional. X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=1adf109e5dc26e8107b9f080db8d4869431fb81b;p=dana%2Fcg-glib.git 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) --- diff --git a/ChangeLog b/ChangeLog index 5e3ba982..eac01c85 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 5e3ba982..eac01c85 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 5e3ba982..eac01c85 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 5e3ba982..eac01c85 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 ec42a337..00671c50 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 49ed655e..b7d8872f 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 33b2ed56..18223318 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