summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authormdejong <mdejong>2001-09-18 16:54:51 (GMT)
committermdejong <mdejong>2001-09-18 16:54:51 (GMT)
commit36111fee5e882a66dd488fd909783e00076ed9f5 (patch)
tree67055291cb806c15889a1e24c85794050d16713b /unix/tcl.m4
parent275c642769888f4581329c775bf97a57d93db979 (diff)
downloadtcl-36111fee5e882a66dd488fd909783e00076ed9f5.zip
tcl-36111fee5e882a66dd488fd909783e00076ed9f5.tar.gz
tcl-36111fee5e882a66dd488fd909783e00076ed9f5.tar.bz2
* unix/configure: Regen.
* unix/tcl.m4 (SC_CONFIG_CFLAGS): On Linux, disable inlining when one of the compat/*.c routines is to be linked in. [Patch 440891]
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index da67764..37ba6b3 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -797,6 +797,18 @@ dnl AC_CHECK_TOOL(AR, ar, :)
if test "`uname -m`" = "alpha" ; then
EXTRA_CFLAGS="-mieee"
fi
+
+ # The combo of gcc + glibc has a bug related
+ # to inlining of functions like strtod(). The
+ # -fno-builtin flag should address this problem
+ # but it does not work. The -fno-inline flag
+ # is kind of overkill but it works.
+ # Disable inlining only when one of the
+ # files in compat/*.c is being linked in.
+ if test x"${LIBOBJS}" != x ; then
+ EXTRA_CFLAGS="${EXTRA_CFLAGS} -fno-inline"
+ fi
+
;;
GNU*)
SHLIB_CFLAGS="-fPIC"