Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jul 2014 22:22:08 +0000 (UTC)
From:      "Pedro F. Giffuni" <pfg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r268538 - head/tools/test/dtrace
Message-ID:  <201407112222.s6BMM8A9084750@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pfg
Date: Fri Jul 11 22:22:08 2014
New Revision: 268538
URL: http://svnweb.freebsd.org/changeset/base/268538

Log:
  Avoid hardcoding "gcc" in the DTrace tests.
  
  At least one test doesn't work yet without gcc, however gcc is
  not always available in base. Using the environment compiler
  is more trustable and will also work with an external compiler.
  
  Reviewed by:	markj
  MFC after:	3 days

Modified:
  head/tools/test/dtrace/Makefile

Modified: head/tools/test/dtrace/Makefile
==============================================================================
--- head/tools/test/dtrace/Makefile	Fri Jul 11 21:15:40 2014	(r268537)
+++ head/tools/test/dtrace/Makefile	Fri Jul 11 22:22:08 2014	(r268538)
@@ -337,7 +337,7 @@ listprgs	:
 
 .for _f in ${ALL_TESTCFILES}
 ${_f:T:S/c$/exe/} : ${_f}
-	gcc -o ${.TARGET} ${_f} -lrt
+	${CC} -o ${.TARGET} ${_f} -lrt
 .endfor
 
 .for _f in ${ALL_TESTEXEFILES}



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