From a7f5cb5b0e5f35cc92bd362daf4ad30ee3294b8a Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Fri, 16 Apr 1999 08:47:41 +0000 Subject: [PATCH] Add -fno-builtin when compiling with gcc in relay32/ subdir. --- configure | 8 ++++++++ configure.in | 8 ++++++++ relay32/Makefile.in | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 771df1e255a..6b9d723025e 100755 --- a/configure +++ b/configure @@ -4511,6 +4511,13 @@ EOF fi +GCC_NO_BUILTIN="" +if test "$GCC" = "yes" +then + GCC_NO_BUILTIN="-fno-builtin" +fi + + MAKE_RULES=Make.rules @@ -4738,6 +4745,7 @@ s%@C2MAN@%$C2MAN%g s%@XLIB@%$XLIB%g s%@DLLFLAGS@%$DLLFLAGS%g s%@LDSHARED@%$LDSHARED%g +s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g /@MAKE_RULES@/r $MAKE_RULES s%@MAKE_RULES@%%g diff --git a/configure.in b/configure.in index ca43e58bd18..725af94c2b8 100644 --- a/configure.in +++ b/configure.in @@ -625,6 +625,14 @@ then AC_DEFINE(HAVE_MSGHDR_ACCRIGHTS) fi +dnl $GCC is set by autoconf +GCC_NO_BUILTIN="" +if test "$GCC" = "yes" +then + GCC_NO_BUILTIN="-fno-builtin" +fi +AC_SUBST(GCC_NO_BUILTIN) + dnl **** Generate output files **** MAKE_RULES=Make.rules diff --git a/relay32/Makefile.in b/relay32/Makefile.in index 4c1ca52dcd0..ab6e02aa9d6 100644 --- a/relay32/Makefile.in +++ b/relay32/Makefile.in @@ -1,4 +1,4 @@ -DEFS = @DLLFLAGS@ -D__WINE__ +DEFS = @DLLFLAGS@ @GCC_NO_BUILTIN@ -D__WINE__ TOPSRCDIR = @top_srcdir@ TOPOBJDIR = .. SRCDIR = @srcdir@