From 1bbf4cb87c2a0b028de4b65377d0b21cbb49d8f2 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 15 Dec 2010 11:41:05 -0500 Subject: [PATCH] Remove the dead --disable-visiblity configure option At the same time, document --disable-Bsymbolic. --- configure.ac | 8 -------- docs/reference/glib/building.sgml | 25 ++++++++++++------------- gthread/tests/1bit-mutex.c | 3 --- 3 files changed, 12 insertions(+), 24 deletions(-) diff --git a/configure.ac b/configure.ac index 28a1f39..791a0c2 100644 --- a/configure.ac +++ b/configure.ac @@ -224,10 +224,6 @@ 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]) if test "x$enable_threads" != "xyes"; then enable_threads=no @@ -296,10 +292,6 @@ else fi fi -if test "x$enable_visibility" = "xno"; then - GLIB_DEBUG_FLAGS="$GLIB_DEBUG_FLAGS -DDISABLE_VISIBILITY" -fi - # Ensure MSVC-compatible struct packing convention is used when # compiling for Win32 with gcc. # What flag to depends on gcc version: gcc3 uses "-mms-bitfields", while diff --git a/docs/reference/glib/building.sgml b/docs/reference/glib/building.sgml index 6ba280a..8b643e0 100644 --- a/docs/reference/glib/building.sgml +++ b/docs/reference/glib/building.sgml @@ -232,8 +232,8 @@ How to compile GLib itself --enable-included-printf - --disable-visibility - --enable-visibility + --disable-Bsymbolic + --enable-Bsymbolic --disable-gtk-doc @@ -510,19 +510,18 @@ How to compile GLib itself - <systemitem>--disable-visibility</systemitem> and - <systemitem>--enable-visibility</systemitem> + <systemitem>--disable-Bsymbolic</systemitem> and + <systemitem>--enable-Bsymbolic</systemitem> - By default, GLib uses ELF visibility attributes to optimize - PLT table entries if the compiler supports ELF visibility - attributes. A side-effect of the way in which this is currently - implemented is that any header change forces a full - recompilation, and missing includes may go unnoticed. - Therefore, it makes sense to turn this feature off while - doing GLib development, even if the compiler supports ELF - visibility attributes. The - option allows to do that. + By default, GLib uses the -Bsymbolic-functions linker + flag to avoid intra-library PLT jumps. A side-effect + of this is that it is no longer possible to override + internal uses of GLib functions with + LD_PRELOAD. Therefore, it may make + sense to turn this feature off in some situations. + The option allows + to do that. diff --git a/gthread/tests/1bit-mutex.c b/gthread/tests/1bit-mutex.c index 6c5d0cd..4b405f4 100644 --- a/gthread/tests/1bit-mutex.c +++ b/gthread/tests/1bit-mutex.c @@ -26,9 +26,6 @@ */ /* side-step some glib build stuff */ - #ifndef DISABLE_VISIBILITY - #define DISABLE_VISIBILITY - #endif #define GLIB_COMPILATION /* rebuild gbitlock.c without futex support, -- 2.7.4