Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Apr 2014 17:58:34 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r264131 - head
Message-ID:  <201404041758.s34HwYOp014730@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Fri Apr  4 17:58:33 2014
New Revision: 264131
URL: http://svnweb.freebsd.org/changeset/base/264131

Log:
  Prevent XDTP from being a relative path
  XDTP is used as the default SYSROOT for clang and thus should be an absolute path.
  
  PR:		arm/188249
  Submitted by:	Edgar Martinez <wink15987@gmail.com>
  Reviewed by:	imp

Modified:
  head/Makefile.inc1

Modified: head/Makefile.inc1
==============================================================================
--- head/Makefile.inc1	Fri Apr  4 17:57:49 2014	(r264130)
+++ head/Makefile.inc1	Fri Apr  4 17:58:33 2014	(r264131)
@@ -1875,7 +1875,11 @@ NOFUN=-DNO_FSCHG MK_HTML=no MK_INFO=no -
 	CPUTYPE=${XDEV_CPUTYPE}
 
 XDDIR=${XDEV_ARCH}-freebsd
-XDTP?=usr/${XDDIR}
+XDTP?=/usr/${XDDIR}
+.if ${XDTP:N/*}
+.error XDTP variable should be an absolute path
+.endif
+
 CDBENV=MAKEOBJDIRPREFIX=${MAKEOBJDIRPREFIX}/${XDDIR} \
 	INSTALL="sh ${.CURDIR}/tools/install.sh"
 CDENV= ${CDBENV} \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404041758.s34HwYOp014730>