(Retracted by #10375.)
authorJarkko Hietaniemi <jhi@iki.fi>
Wed, 30 May 2001 13:49:44 +0000 (13:49 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Wed, 30 May 2001 13:49:44 +0000 (13:49 +0000)
Linux DB tweak from Merijn Broeren <merijnb@iloquent.nl>.

p4raw-id: //depot/perl@10324

hints/linux.sh

index a6b2bd9..b8aafd2 100644 (file)
@@ -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
+
+