Pass CC and CXX to make depend as well. As soon as we support
authorpatrick <patrick@openbsd.org>
Thu, 8 Jun 2017 18:33:08 +0000 (18:33 +0000)
committerpatrick <patrick@openbsd.org>
Thu, 8 Jun 2017 18:33:08 +0000 (18:33 +0000)
dependencies in the clang makefiles we need to make sure to use
a compiler that supports C++11.

Makefile.cross

index 1773251..574abcb 100644 (file)
@@ -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)