From owner-p4-projects@FreeBSD.ORG Tue Feb 26 15:47:21 2013 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id E7F88D1A; Tue, 26 Feb 2013 15:47:20 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 63804D18 for ; Tue, 26 Feb 2013 15:47:20 +0000 (UTC) (envelope-from brooks@freebsd.org) Received: from skunkworks.freebsd.org (skunkworks.freebsd.org [IPv6:2001:1900:2254:2068::682:0]) by mx1.freebsd.org (Postfix) with ESMTP id 4898FB1B for ; Tue, 26 Feb 2013 15:47:20 +0000 (UTC) Received: from skunkworks.freebsd.org ([127.0.1.74]) by skunkworks.freebsd.org (8.14.6/8.14.6) with ESMTP id r1QFlKKj080278 for ; Tue, 26 Feb 2013 15:47:20 GMT (envelope-from brooks@freebsd.org) Received: (from perforce@localhost) by skunkworks.freebsd.org (8.14.6/8.14.6/Submit) id r1QFlKMY080275 for perforce@freebsd.org; Tue, 26 Feb 2013 15:47:20 GMT (envelope-from brooks@freebsd.org) Date: Tue, 26 Feb 2013 15:47:20 GMT Message-Id: <201302261547.r1QFlKMY080275@skunkworks.freebsd.org> X-Authentication-Warning: skunkworks.freebsd.org: perforce set sender to brooks@freebsd.org using -f From: Brooks Davis Subject: PERFORCE change 222391 for review To: Perforce Change Reviews Precedence: bulk X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.14 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Feb 2013 15:47:21 -0000 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}" \