In perl.git, the branch smoke-me/nicholas/conditional-gdbmcompat has been 
updated

<http://perl5.git.perl.org/perl.git/commitdiff/12e5cf12ba05bc5618596b40ce0a598c16503dee?hp=f0fe019a81bffdc6f23c6c00d5fa100df21f8428>

- Log -----------------------------------------------------------------
commit 12e5cf12ba05bc5618596b40ce0a598c16503dee
Author: Nicholas Clark <[email protected]>
Date:   Wed Mar 19 11:30:07 2014 +0100

    The linux hints file should only look for -lgdbm_compat if -lgdbm is wanted.
    
    Previously they would unconditionally add gdbm_compat to the list of wanted
    libraries. This is unhelpful if the user has passed Configure arguments to
    constrain the library search to avoid libgdbm.so, because Configure would
    still end up finding libgdbm_compat.so, which at best is not useful without
    libgdbm.so, and at worse could have the same problems that caused the
    user to avoid libgdbm.so (eg not compatible with the current compiler flags)
-----------------------------------------------------------------------

Summary of changes:
 hints/linux.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/hints/linux.sh b/hints/linux.sh
index 4c2c5f5..956adfc 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -58,7 +58,11 @@ shift
 libswanted="$*"
 
 # Debian 4.0 puts ndbm in the -lgdbm_compat library.
-libswanted="$libswanted gdbm_compat"
+echo $libs
+if echo " $libswanted " | grep -q ' gdbm '; then
+    # Only add if gdbm is in libswanted.
+    libswanted="$libswanted gdbm_compat"
+fi
 
 # Configure may fail to find lstat() since it's a static/inline
 # function in <sys/stat.h>.

--
Perl5 Master Repository

Reply via email to