summaryrefslogtreecommitdiffstats
path: root/unix/configure
diff options
context:
space:
mode:
authorstu <stwo@users.sourceforge.net>2018-01-12 14:34:00 (GMT)
committerstu <stwo@users.sourceforge.net>2018-01-12 14:34:00 (GMT)
commitf0fe26692c7a1463667235d9c8595441be4f21e9 (patch)
tree1118b63f97d917dd31f3845d70a0fd8ba53cb533 /unix/configure
parentf6d8f482766c31a7fa638cb865773ecb5030f361 (diff)
downloadtk-f0fe26692c7a1463667235d9c8595441be4f21e9.zip
tk-f0fe26692c7a1463667235d9c8595441be4f21e9.tar.gz
tk-f0fe26692c7a1463667235d9c8595441be4f21e9.tar.bz2
Sync tcl.m4 with Tcl. See also https://core.tcl.tk/tcl/info/eb2c85495faaa9ed.
Diffstat (limited to 'unix/configure')
-rwxr-xr-xunix/configure8
1 files changed, 4 insertions, 4 deletions
diff --git a/unix/configure b/unix/configure
index e69ffa9..4e10f36 100755
--- a/unix/configure
+++ b/unix/configure
@@ -4932,7 +4932,7 @@ $as_echo "$ac_cv_cygwin" >&6; }
LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
SHLIB_CFLAGS="-fPIC"
SHLIB_SUFFIX=".so"
- SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
+ SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared'
DL_OBJS="tclLoadDl.o"
DL_LIBS="-lroot"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnetwork" >&5
@@ -5254,7 +5254,7 @@ fi
# get rid of the warnings.
#CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
- SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
+ SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared'
DL_OBJS="tclLoadDl.o"
DL_LIBS="-ldl"
LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
@@ -5341,7 +5341,7 @@ fi
SHLIB_CFLAGS="-fpic"
;;
esac
- SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}'
+ SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
SHLIB_SUFFIX=".so"
DL_OBJS="tclLoadDl.o"
DL_LIBS=""
@@ -5368,7 +5368,7 @@ fi
NetBSD-*)
# NetBSD has ELF and can use 'cc -shared' to build shared libs
SHLIB_CFLAGS="-fPIC"
- SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}'
+ SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
SHLIB_SUFFIX=".so"
DL_OBJS="tclLoadDl.o"
DL_LIBS=""