diff options
author | wart <wart> | 1999-06-17 00:36:42 (GMT) |
---|---|---|
committer | wart <wart> | 1999-06-17 00:36:42 (GMT) |
commit | 16638385e985707c69b7776f11ae61c95b6fa071 (patch) | |
tree | d429d4ad9d694e9894ed616745b15d2785ad9435 | |
parent | 15888e552b012280c4de7b8bdb67c5cafd8062de (diff) | |
download | tcl-16638385e985707c69b7776f11ae61c95b6fa071.zip tcl-16638385e985707c69b7776f11ae61c95b6fa071.tar.gz tcl-16638385e985707c69b7776f11ae61c95b6fa071.tar.bz2 |
Fixed compiler optimization flags for Linux to remove a plethora of warnings.
-rw-r--r-- | unix/aclocal.m4 | 7 | ||||
-rw-r--r-- | unix/tcl.m4 | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/unix/aclocal.m4 b/unix/aclocal.m4 index e580575..9315d8e 100644 --- a/unix/aclocal.m4 +++ b/unix/aclocal.m4 @@ -692,6 +692,13 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [ SHLIB_CFLAGS="-fPIC" SHLIB_LD_LIBS='${LIBS}' SHLIB_SUFFIX=".so" + + # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings + # when you inline the string operations. Turn this off to + # get rid of the warnings. + + CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES" + if test "$have_dl" = yes; then SHLIB_LD="${CC} -shared" DL_OBJS="tclLoadDl.o" diff --git a/unix/tcl.m4 b/unix/tcl.m4 index 0551f1c..9d08eaf 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -680,6 +680,13 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [ SHLIB_CFLAGS="-fPIC" SHLIB_LD_LIBS='${LIBS}' SHLIB_SUFFIX=".so" + + # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings + # when you inline the string and math operations. Turn this off to + # get rid of the warnings. + + CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" + if test "$have_dl" = yes; then SHLIB_LD="${CC} -shared" DL_OBJS="tclLoadDl.o" |