From aa5482b536e2f10536edf4c82089d5e0ebcb72c2 Mon Sep 17 00:00:00 2001 From: patrick Date: Thu, 8 Jun 2017 18:33:08 +0000 Subject: [PATCH] Pass CC and CXX to make depend as well. As soon as we support dependencies in the clang makefiles we need to make sure to use a compiler that supports C++11. --- Makefile.cross | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.cross b/Makefile.cross index 1773251178a..574abcbd9ae 100644 --- a/Makefile.cross +++ b/Makefile.cross @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.cross,v 1.94 2017/05/23 14:57:30 patrick Exp $ +# $OpenBSD: Makefile.cross,v 1.95 2017/06/08 18:33:08 patrick Exp $ cross-tools: cross-includes cross-binutils cross-gcc cross-lib cross-distrib: cross-tools cross-bin cross-share cross-sys cross-etc-root-var @@ -228,6 +228,7 @@ ${CROSSGCC}: ${CROSSBINUTILS} MACHINE_ARCH=${TARGET_ARCH} \ ${MAKE} obj) (cd ${.CURDIR}/gnu/usr.bin/clang; \ + CC=clang CXX=clang++ \ MAKEOBJDIR=obj.${MACHINE}.${TARGET} \ MACHINE_ARCH=${TARGET_ARCH} \ ${MAKE} depend) -- 2.20.1