Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/usr.bin/backend make sure we use the C com...



details:   https://anonhg.NetBSD.org/src/rev/942940fe7328
branches:  trunk
changeset: 327740:942940fe7328
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Mar 15 20:46:38 2014 +0000

description:
make sure we use the C compiler (not C++) for CC= when running the
configure for auto-build.h.  fixes problems on linux.

diffstat:

 external/gpl3/gcc/usr.bin/backend/Makefile |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r a35e40d67ea6 -r 942940fe7328 external/gpl3/gcc/usr.bin/backend/Makefile
--- a/external/gpl3/gcc/usr.bin/backend/Makefile        Sat Mar 15 19:20:27 2014 +0000
+++ b/external/gpl3/gcc/usr.bin/backend/Makefile        Sat Mar 15 20:46:38 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.20 2014/03/10 18:57:35 mrg Exp $
+#      $NetBSD: Makefile,v 1.21 2014/03/15 20:46:38 mrg Exp $
 
 LIBISPRIVATE=  yes
 
@@ -21,6 +21,7 @@
 .include <bsd.lib.mk>
 
 # Force using C++ for this
+ORIGHOST_CC:=  ${HOST_CC}
 HOST_CC:=      ${HOST_CXX}
 CC:=           ${CXX}
 CFLAGS:=       ${CXXFLAGS}
@@ -159,6 +160,8 @@
 .include "../Makefile.options"
 
 # Yuck, we have to run configure to generate this one...
+# We use ORIGHOST_CC here because GCC's ./configure expects (and
+# depends upon) it.
 CLEANFILES+=   auto-build.h
 HOST_CFLAGS+= -I${.OBJDIR}
 auto-build.h: gmp.h Makefile
@@ -167,7 +170,7 @@
        mkdir .ab && \
        (cd .ab && \
                AWK=${TOOL_AWK:Q} \
-               CC=${HOST_CC:Q} CFLAGS=${HOST_CFLAGS:Q} \
+               CC=${ORIGHOST_CC:Q} CFLAGS=${HOST_CFLAGS:Q} \
                MAKE=${MAKE:Q} \
                CONFIG_SHELL=${HOST_SH:Q} \
                gcc_cv_ld=${LD} \



Home | Main Index | Thread Index | Old Index