Date: Tue, 26 Feb 2013 15:47:20 GMT From: Brooks Davis <brooks@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 222391 for review Message-ID: <201302261547.r1QFlKMY080275@skunkworks.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@222391?ac=10 Change 222391 by brooks@brooks_zenith on 2013/02/26 15:46:27 When building for a target other than the build host and using an external compiler that is clang, set the target triple. Affected files ... .. //depot/projects/ctsrd/tesla/src/Makefile.inc1#5 edit Differences ... ==== //depot/projects/ctsrd/tesla/src/Makefile.inc1#5 (text+ko) ==== @@ -294,6 +294,16 @@ .endif .if ${XCC:M/*} XFLAGS= --sysroot=${WORLDTMP} +.if ${TARGET_ARCH} != ${MACHINE_ARCH} && ${WMAKE_COMPILER_TYPE} == "clang" +.if (${TARGET_ARCH} == "arm" || ${TARGET_ARCH} == "armv6") && \ +${MK_ARM_EABI} != "no" +TARGET_ABI= gnueabi +.else +TARGET_ABI= unknown +.endif +TARGET_TRIPLE?= ${TARGET_ARCH:C/amd64/x86_64/}-${TARGET_ABI}-freebsd10.0 +XFLAGS+= -target ${TARGET_TRIPLE} +.endif .endif WMAKEENV+= CC="${XCC} ${XFLAGS}" CXX="${XCXX} ${XFLAGS}" \ CPP="${XCPP} ${XFLAGS}" \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302261547.r1QFlKMY080275>