summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
Diffstat (limited to 'unix')
-rwxr-xr-xunix/configure5
-rw-r--r--unix/tcl.m42
2 files changed, 3 insertions, 4 deletions
diff --git a/unix/configure b/unix/configure
index a84226f..a06ac5a 100755
--- a/unix/configure
+++ b/unix/configure
@@ -6649,7 +6649,7 @@ fi
CFLAGS_OPTIMIZE=-O
if test "$GCC" = yes; then
- CFLAGS_WARNING="-Wall"
+ CFLAGS_WARNING="-Wall -Wpointer-arith"
else
CFLAGS_WARNING=""
@@ -7576,7 +7576,6 @@ fi
# Step 4 will set the necessary variables
DL_OBJS=""
SHLIB_LD_LIBS=""
- LDFLAGS=""
;;
*)
case "$arch" in
@@ -7598,7 +7597,7 @@ fi
LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}'
- LDFLAGS="-Wl,-export-dynamic"
+ LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
;;
esac
case "$arch" in
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 75608b5..0dd4d77 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -1142,7 +1142,7 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
CFLAGS_DEBUG=-g
CFLAGS_OPTIMIZE=-O
AS_IF([test "$GCC" = yes], [
- CFLAGS_WARNING="-Wall"
+ CFLAGS_WARNING="-Wall -Wpointer-arith"
], [CFLAGS_WARNING=""])
AC_CHECK_TOOL(AR, ar)
STLIB_LD='${AR} cr'