From: Jarkko Hietaniemi Date: Wed, 30 May 2001 13:49:44 +0000 (+0000) Subject: (Retracted by #10375.) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9cda1f2902c19d0cc2e1426f1faa95c55e95d1a8;p=p5sagit%2Fp5-mst-13.2.git (Retracted by #10375.) Linux DB tweak from Merijn Broeren . p4raw-id: //depot/perl@10324 --- diff --git a/hints/linux.sh b/hints/linux.sh index a6b2bd9..b8aafd2 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -289,3 +289,45 @@ ccflags_uselargefiles="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" ;; esac EOCBU + +# Change by wpm 10 April 2001 +# +# XXX -- This isn't right, since you still don't want perl itself +# linked with -ldb, even if you *do* build the DB_File extension. +# Linking perl with -ldb will prevent you from building the +# Sybase::DBlib extension, due to a conflict between dbopen() in both +# libdb.so and libsybdb.so. +# +case "$i_db" in +undef) + set `echo X "$libswanted "|sed -e 's/ db / /'` + shift + libswanted="$*" ;; +esac + +# +# XXX -- Same is true for libgdbm. This makes it hard for us to build +# our own GDBM_File. +# +case "$i_gdbm" in +undef) + set `echo X "$libswanted "|sed -e 's/ gdbm / /'` + shift + libswanted="$*" ;; +esac + +# +# XXX -- damn. We also need to strip ndbm as well because: +# +# mglnxcs01$ ls -al /usr/lib/*ndbm* +# lrwxrwxrwx 1 root wheel 7 Oct 4 2000 /usr/lib/libndbm.a -> libdb.a +# lrwxrwxrwx 1 root wheel 8 Oct 4 2000 /usr/lib/libndbm.so -> libdb.so +# +case "$i_db" in +undef) + set `echo X "$libswanted "|sed -e 's/ ndbm / /'` + shift + libswanted="$*" ;; +esac + +