Description: fix FTBFS on non-linux architecture, by defining DL_OBJS there too
 need to patch the configure script directly as no autoreconf is done
Authors: Mattia Rizzolo <mattia@debian.org>, Svante Signell <svante.signell@gmail.com>
Last-Update: 2016-05-29
Bug-Debian: https://bugs.debian.org/803358
Forwarded: no

--- a/configure
+++ b/configure
@@ -8144,7 +8144,7 @@
 	    SHLIB_SUFFIX=".so"
 
 	    SHLIB_LD='${CC} -shared'
-	    DL_OBJS=""
+	    DL_OBJS="tclLoadDl.o"
 	    DL_LIBS="-ldl"
 	    LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
 	    CC_SEARCH_FLAGS=""
--- a/tclconfig/tcl.m4
+++ b/tclconfig/tcl.m4
@@ -1603,7 +1603,7 @@
 	    SHLIB_SUFFIX=".so"
 
 	    SHLIB_LD='${CC} -shared'
-	    DL_OBJS=""
+	    DL_OBJS="tclLoadDl.o"
 	    DL_LIBS="-ldl"
 	    LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
 	    CC_SEARCH_FLAGS=""
