diff make/linux/makefiles/gcc.make @ 2020:a5610f0862fe

7005007: Refine use of ALT_COMPILER_PATH to avoid conflict with JPRT usage Summary: Check for CROSS_COMPILE_ARCH being set as an indicator to use ALT_COMPILER_PATH Reviewed-by: acorn, ohair
author dholmes
date Thu, 09 Dec 2010 20:12:06 -0500
parents c760f78e0a53
children 5d801e6b9a80
line wrap: on
line diff
--- a/make/linux/makefiles/gcc.make	Thu Dec 09 15:04:26 2010 -0500
+++ b/make/linux/makefiles/gcc.make	Thu Dec 09 20:12:06 2010 -0500
@@ -25,7 +25,9 @@
 #------------------------------------------------------------------------
 # CC, CPP & AS
 
-ifdef ALT_COMPILER_PATH
+# When cross-compiling the ALT_COMPILER_PATH points
+# to the cross-compilation toolset
+ifdef CROSS_COMPILE_ARCH
 CPP = $(ALT_COMPILER_PATH)/g++
 CC  = $(ALT_COMPILER_PATH)/gcc
 else