From fe692231f89f4ded72f1f53bc5269cca82ac8ed4 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Thu, 26 Feb 2015 20:02:29 +0000 Subject: [PATCH] Support CROSS_BINUTILS_PREFIX with in-tree compiler Reviewed by: bapt, imp Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D1974 --- Makefile.inc1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile.inc1 b/Makefile.inc1 index 38b3b2baa0ec..e1f80bc79449 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -371,7 +371,13 @@ XCFLAGS+= -target ${TARGET_TRIPLE} XCFLAGS+= --sysroot=${WORLDTMP} ${BFLAGS} XCXXFLAGS+= --sysroot=${WORLDTMP} ${BFLAGS} .endif +.else +.if defined(CROSS_BINUTILS_PREFIX) && exists(${CROSS_BINUTILS_PREFIX}) +BFLAGS+= -B${CROSS_BINUTILS_PREFIX} +XCFLAGS+= ${BFLAGS} +XCXXFLAGS+= ${BFLAGS} .endif +.endif # ${XCC:M/*} WMAKE= ${WMAKEENV} ${MAKE} ${WORLD_FLAGS} -f Makefile.inc1 DESTDIR=${WORLDTMP}