From cb42ec588c4dd9e729eca5efc760ee6e7e4012c1 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 15 Sep 2004 02:03:58 +0000 Subject: [PATCH] New option --disable-visibility to disable the use of ELF visibility Tue Sep 14 22:01:49 2004 Matthias Clasen * configure.in: New option --disable-visibility to disable the use of ELF visibility attributes for PLT reduction. * gtk/makegtkalias.pl: * gdk/makegdkalias.pl: Respect the DISABLE_VISIBILITY define. --- ChangeLog | 9 +++++++++ ChangeLog.pre-2-10 | 9 +++++++++ ChangeLog.pre-2-6 | 9 +++++++++ ChangeLog.pre-2-8 | 9 +++++++++ configure.in | 10 ++++++++++ gdk-pixbuf/makegdkpixbufalias.pl | 4 ++++ gdk/makegdkalias.pl | 4 ++++ gtk/makegtkalias.pl | 4 ++++ 8 files changed, 58 insertions(+) diff --git a/ChangeLog b/ChangeLog index ad5e2484f6..1a17c02b8f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +Tue Sep 14 22:01:49 2004 Matthias Clasen + + * configure.in: New option --disable-visibility to disable + the use of ELF visibility attributes for PLT reduction. + + * gtk/makegtkalias.pl: + * gdk/makegdkalias.pl: Respect the DISABLE_VISIBILITY + define. + Tue Sep 14 23:20:56 2004 Søren Sandmann * gtk/gtkaction.c (connect_proxy): Call diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index ad5e2484f6..1a17c02b8f 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,12 @@ +Tue Sep 14 22:01:49 2004 Matthias Clasen + + * configure.in: New option --disable-visibility to disable + the use of ELF visibility attributes for PLT reduction. + + * gtk/makegtkalias.pl: + * gdk/makegdkalias.pl: Respect the DISABLE_VISIBILITY + define. + Tue Sep 14 23:20:56 2004 Søren Sandmann * gtk/gtkaction.c (connect_proxy): Call diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index ad5e2484f6..1a17c02b8f 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,12 @@ +Tue Sep 14 22:01:49 2004 Matthias Clasen + + * configure.in: New option --disable-visibility to disable + the use of ELF visibility attributes for PLT reduction. + + * gtk/makegtkalias.pl: + * gdk/makegdkalias.pl: Respect the DISABLE_VISIBILITY + define. + Tue Sep 14 23:20:56 2004 Søren Sandmann * gtk/gtkaction.c (connect_proxy): Call diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index ad5e2484f6..1a17c02b8f 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,12 @@ +Tue Sep 14 22:01:49 2004 Matthias Clasen + + * configure.in: New option --disable-visibility to disable + the use of ELF visibility attributes for PLT reduction. + + * gtk/makegtkalias.pl: + * gdk/makegdkalias.pl: Respect the DISABLE_VISIBILITY + define. + Tue Sep 14 23:20:56 2004 Søren Sandmann * gtk/gtkaction.c (connect_proxy): Call diff --git a/configure.in b/configure.in index 002412466f..b41fa26518 100644 --- a/configure.in +++ b/configure.in @@ -48,6 +48,7 @@ AM_CONFIG_HEADER(config.h) # # For each of the libraries we build, we define the following + # substituted variables: # # foo_PACKAGES: pkg-config packages this library requires @@ -191,6 +192,10 @@ AC_ARG_ENABLE(rebuilds, [AC_HELP_STRING([--disable-rebuilds], [disable all source autogeneration rules])],, [enable_rebuilds=yes]) +AC_ARG_ENABLE(visibility, + [AC_HELP_STRING([--disable-visibility], + [don't use ELF visibility attributes])],, + [enable_visibility=yes]) AC_ARG_WITH(xinput, [AC_HELP_STRING([--with-xinput=@<:@no/yes@:>@], [support XInput])]) @@ -246,6 +251,11 @@ else fi fi +if test "x$enable_visibility" = "xno"; then + GTK_DEBUG_FLAGS="$GTK_DEBUG_FLAGS -DDISABLE_VISIBILITY" +fi + + AC_DEFINE_UNQUOTED(GTK_COMPILED_WITH_DEBUGGING, "${enable_debug}") diff --git a/gdk-pixbuf/makegdkpixbufalias.pl b/gdk-pixbuf/makegdkpixbufalias.pl index 1c384bf3b8..6833e6cc94 100755 --- a/gdk-pixbuf/makegdkpixbufalias.pl +++ b/gdk-pixbuf/makegdkpixbufalias.pl @@ -3,6 +3,8 @@ print < #ifdef G_HAVE_GNUC_VISIBILITY @@ -99,6 +101,8 @@ print < #ifdef G_HAVE_GNUC_VISIBILITY @@ -128,5 +130,7 @@ print < #ifdef G_HAVE_GNUC_VISIBILITY @@ -139,6 +141,8 @@ print <