--- db-4.3.27/dist/Makefile.in.chris	2005-02-01 23:40:34.447945464 +0100
+++ db-4.3.27/dist/Makefile.in	2005-02-01 23:42:21.635650456 +0100
@@ -58,7 +58,7 @@
 LDFLAGS=	@LDFLAGS@
 LIBS=		@LIBS@
 TEST_LIBS=	@TEST_LIBS@
-LIBSO_LIBS=	@LIBSO_LIBS@
+LIBSO_LIBS=	@LIBSO_LIBS@ $(LIBS)
 
 libdb_base=	libdb
 libdb=		$(libdb_base).a
@@ -77,7 +77,7 @@
 CXX=		@MAKEFILE_CXX@
 CXXLINK=	@MAKEFILE_CXXLINK@ @CXXFLAGS@
 XSOLINK=	@MAKEFILE_XSOLINK@ @CXXFLAGS@
-LIBXSO_LIBS=	@LIBXSO_LIBS@
+LIBXSO_LIBS=	@LIBXSO_LIBS@ $(LIBS)
 
 libcxx_base=	libdb_cxx
 libcxx=		$(libcxx_base).a
@@ -93,7 +93,7 @@
 # Java support is optional and requires shared librarires.
 ##################################################
 CLASSPATH=	$(JAVA_CLASSTOP)
-LIBJSO_LIBS=	@LIBJSO_LIBS@
+LIBJSO_LIBS=	@LIBJSO_LIBS@ $(LIBS)
 
 JAR=		@JAR@
 JAVAC=		env CLASSPATH="$(CLASSPATH)" @JAVAC@
@@ -126,7 +126,7 @@
 # Tcl support is optional and requires shared libraries.
 ##################################################
 TCFLAGS=	@TCFLAGS@
-LIBTSO_LIBS=	@LIBTSO_LIBS@
+LIBTSO_LIBS=	@LIBTSO_LIBS@ $(LIBS)
 libtso_base=	libdb_tcl
 libtso=		$(libtso_base)-$(LIBVERSION)@MODSUFFIX@
 libtso_static=	$(libtso_base)-$(LIBVERSION).a
