PERFORCE change 179677 for review

Andrius Morkunas andrius at FreeBSD.org
Wed Jun 16 12:10:18 UTC 2010


http://p4web.freebsd.org/@@179677?ac=10

Change 179677 by andrius at klevas on 2010/06/16 12:09:36

	Change handling of USE_CC=gcc.
	
	It will now use GCC from base system instead of any version of gcc.

Affected files ...

.. //depot/projects/soc2010/clangports/ports/Mk/bsd.compiler.mk#3 edit

Differences ...

==== //depot/projects/soc2010/clangports/ports/Mk/bsd.compiler.mk#3 (text+ko) ====

@@ -25,8 +25,13 @@
 CC=			${PORTS_CC}
 CXX=		${PORTS_CC:S/cc/++/}
 
+# USE_CC wants GCC from base system.
+.if defined(USE_CC) && !empty(USE_CC:Mgcc)
+CC=			gcc
+CXX=		g++
+
 # Translate USE_CC to USE_GCC if the former is defined.
-.if defined(USE_CC) && !empty(USE_CC:Mgcc*)
+.elif defined(USE_CC) && !empty(USE_CC:Mgcc*)
 USE_GCC=	${USE_CC:Mgcc*:S/gcc//}
 .endif
 


More information about the p4-projects mailing list