svn commit: r279328 - head

Ed Maste emaste at FreeBSD.org
Thu Feb 26 20:02:30 UTC 2015


Author: emaste
Date: Thu Feb 26 20:02:29 2015
New Revision: 279328
URL: https://svnweb.freebsd.org/changeset/base/279328

Log:
  Support CROSS_BINUTILS_PREFIX with in-tree compiler
  
  Reviewed by:	bapt, imp
  Sponsored by:	The FreeBSD Foundation
  Differential Revision: https://reviews.freebsd.org/D1974

Modified:
  head/Makefile.inc1

Modified: head/Makefile.inc1
==============================================================================
--- head/Makefile.inc1	Thu Feb 26 19:56:48 2015	(r279327)
+++ head/Makefile.inc1	Thu Feb 26 20:02:29 2015	(r279328)
@@ -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}
 


More information about the svn-src-all mailing list