--- Makefile.in.orig	Fri Dec  3 21:48:05 2004
+++ Makefile.in	Sat Dec  4 12:27:29 2004
@@ -47,7 +47,7 @@
 
 # The library that programs using TCL must link against.
 #
-LIBTCL = @TARGET_TCL_LIBS@
+LIBTCL = @LDFLAGS@ @TARGET_TCL_LIBS@
 
 # Compiler options needed for programs that use the readline() library.
 #
@@ -55,7 +55,7 @@
 
 # The library that programs using readline() must link against.
 #
-LIBREADLINE = @TARGET_READLINE_LIBS@
+LIBREADLINE = @LDFLAGS@ @TARGET_READLINE_LIBS@
 
 # Should the database engine assume text is coded as UTF-8 or iso8859?
 #
