From c75106fd3ab3715af190dbbdeda9809a019edaac Mon Sep 17 00:00:00 2001 From: Björn Jacke Date: Tue, 20 Jul 2010 19:48:39 +0200 Subject: s3: not use as-needed by default and auto use if enable-developer is active as discussed on samba-technical, we don't want people out there to use it unwittingly by default. However by enabling it when enable-developer is used we make sure that we don't break the feature. --- source3/configure.in | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/source3/configure.in b/source3/configure.in index b99a004a68..26e98f5333 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -1800,9 +1800,16 @@ fi AC_MSG_RESULT($BLDSHARED) +if test x"$enable_developer" = x"yes" ; then + default_as_needed=auto +else + default_as_needed=no +fi AC_ARG_ENABLE(as-needed, - [AS_HELP_STRING([--enable-as-needed], - [Turn on as-needed support if available (default=auto)])]) + AS_HELP_STRING([--enable-as-needed], + [Turn on as-needed support if available (default=no)]), + [enable_as_needed=$enableval], + [enable_as_needed=$default_as_needed]) if test "x$enable_as_needed" != xno; then saved_before_as_needed_ldflags="$LDFLAGS" for flags in "-Wl,--as-needed" "-Wl,-z,ignore" "-z ignore" ; do @@ -1819,7 +1826,7 @@ if test "x$enable_as_needed" != xno; then done fi -if test x$ld_as_needed_flag_found = xyes ; then +if test x$ld_as_needed_flag_found = xyes -a x$enable_as_needed = xauto ; then # check if ld has bug described in https://bugzilla.samba.org/show_bug.cgi?id=7209#c17 AC_MSG_CHECKING([if $LD_AS_NEEDED_FLAG has explicit external libs bug]) cat > conftest_shb.c <