Use HOST_CC for programs that will run on the build host
authorIan Romanick <idr@us.ibm.com>
Thu, 3 Jan 2008 23:08:53 +0000 (15:08 -0800)
committerIan Romanick <idr@us.ibm.com>
Wed, 23 Jan 2008 23:25:52 +0000 (15:25 -0800)
configs/default
configs/linux-cell
src/mesa/x86/Makefile

index 6ce0249a9a81fad4345d7eceefd301b5c65facf9..166205a1d314f3c0994052e5fdebe60c4dbc66e7 100644 (file)
@@ -18,6 +18,7 @@ DRM_SOURCE_PATH=$(TOP)/../drm
 # Compiler and flags
 CC = cc
 CXX = CC
+HOST_CC = $(CC)
 CFLAGS = -O
 CXXFLAGS = -O
 GLU_CFLAGS = 
index 02bf61c6b4d43f9b229f46e465e39b312f5844dc..f4d8ef2145f73c641c888ae15960c6cc4971ad3b 100644 (file)
@@ -8,6 +8,7 @@ CONFIG_NAME = linux-cell
 # Compiler and flags
 CC = ppu32-gcc
 CXX = ppu32-g++
+HOST_CC = gcc
 
 # Cell SDK location
 SDK = /opt/ibm/cell-sdk/prototype/sysroot/usr
index 3c6a6b11c064961a7b232d8abd6aeca8dea329f5..09481dc509456b3ed3ca17fcc15f05a779e5f369 100644 (file)
@@ -21,7 +21,7 @@ clean:
 
 
 gen_matypes: gen_matypes.c
-       $(CC) $(INCLUDE_DIRS) $(CFLAGS) gen_matypes.c -o gen_matypes
+       $(HOST_CC) $(INCLUDE_DIRS) $(HOST_CFLAGS) gen_matypes.c -o gen_matypes
 
 # need some special rules here, unfortunately
 matypes.h: ../main/mtypes.h ../tnl/t_context.h gen_matypes