summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-02-10 08:55:14 (GMT)
committerhobbs <hobbs>2000-02-10 08:55:14 (GMT)
commitdd33cec55f8d2792c7b628594c4f0f2d4df7f669 (patch)
tree096ac7fd2b5cc84fae1c4869d6fbbf4e5848c4d2 /unix/tcl.m4
parent4541ee11ae166c9c275bd5162a5cf79839415b93 (diff)
downloadtcl-dd33cec55f8d2792c7b628594c4f0f2d4df7f669.zip
tcl-dd33cec55f8d2792c7b628594c4f0f2d4df7f669.tar.gz
tcl-dd33cec55f8d2792c7b628594c4f0f2d4df7f669.tar.bz2
* unix/README:
* unix/Makefile.in (dist): removed porting.notes and porting.old from distribution and CVS. The information was very outdated. Now refer to http://dev.scriptics.com/services/support/platforms.html * tests/unixInit.test: fixed japanese LANG encoding test [Bug: 3549] * unix/configure.in: * unix/tcl.m4: correct CFLAG_WARNING setting, fixed gcc config for AIX, added -export-dynamic to LDFLAGS for FreeBSD-3+ [Bug: 2998] * win/tclWinLoad.c (TclpLoadFile): improved error message for load failures, could perhaps be even more intelligent.
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m49
1 files changed, 8 insertions, 1 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index f8828b1..0939379 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -557,6 +557,7 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [
else
using_gcc="no"
fi
+
AC_MSG_RESULT([$using_gcc ($CC)])
# Step 2: check for existence of -ldl library. This is needed because
@@ -576,6 +577,11 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [
TCL_LIB_VERSIONS_OK=ok
CFLAGS_DEBUG=-g
CFLAGS_OPTIMIZE=-O
+ if test "$using_gcc" = "yes" ; then
+ CFLAGS_WARNING="-Wall -Wconversion -Wno-implicit-int"
+ else
+ CFLAGS_WARNING=""
+ fi
TCL_NEEDS_EXP_FILE=0
TCL_BUILD_EXP_FILE=""
TCL_EXP_FILE=""
@@ -805,7 +811,7 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [
SHLIB_SUFFIX=".so"
DL_OBJS="tclLoadDl.o"
DL_LIBS=""
- LDFLAGS=""
+ LDFLAGS="-export-dynamic"
LD_SEARCH_FLAGS=""
;;
NEXTSTEP-*)
@@ -1155,6 +1161,7 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [
AC_SUBST(DL_LIBS)
AC_SUBST(CFLAGS_DEBUG)
AC_SUBST(CFLAGS_OPTIMIZE)
+ AC_SUBST(CFLAGS_WARNING)
])
#--------------------------------------------------------------------