diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-05-30 13:49:44 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-05-30 13:49:44 +0000 |
commit | 9cda1f2902c19d0cc2e1426f1faa95c55e95d1a8 (patch) | |
tree | de1056d3a93b5a4164a1a9e80b79b19a6ffe1095 /hints | |
parent | eca1c0730dd69cff38a30045e5660f1fba91a480 (diff) | |
download | perl-9cda1f2902c19d0cc2e1426f1faa95c55e95d1a8.tar.gz |
(Retracted by #10375.)
Linux DB tweak from Merijn Broeren <merijnb@iloquent.nl>.
p4raw-id: //depot/perl@10324
Diffstat (limited to 'hints')
-rw-r--r-- | hints/linux.sh | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/hints/linux.sh b/hints/linux.sh index a6b2bd985a..b8aafd281c 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 + + |