summaryrefslogtreecommitdiff
path: root/dev-tcltk/tkzinc/files/3.3.6-ldflags.patch
blob: 903ef9a2eaee33366b2c96902d73967f49d6f82b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/tclconfig/tcl.m4 b/tclconfig/tcl.m4
index 0cbca13..c68af63 100644
--- a/tclconfig/tcl.m4
+++ b/tclconfig/tcl.m4
@@ -1447,7 +1447,8 @@ dnl AC_CHECK_TOOL(AR, ar)
 	    # get rid of the warnings.
 	    #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
 
-	    SHLIB_LD="${CC} -shared"
+	    # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
+	    SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT} ${LDFLAGS}'
 	    DL_OBJS="tclLoadDl.o"
 	    DL_LIBS="-ldl"
 	    LDFLAGS="$LDFLAGS -Wl,--export-dynamic"