aboutsummaryrefslogtreecommitdiffstats
path: root/configs
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-02-12 15:24:54 -0700
committerBrian Paul <[email protected]>2010-02-12 15:25:12 -0700
commit2d6f5dd62b9afad90704ba6019829b478738bf0b (patch)
tree15dc49710ad1cd755675974952117744acbd244a /configs
parent3798cc81573a89c5ac221fd926385c45ba8da3b2 (diff)
cell: fix-up C, CPP flags
Flags like -Wmissing-prototypes don't apply to g++.
Diffstat (limited to 'configs')
-rw-r--r--configs/linux-cell10
1 files changed, 7 insertions, 3 deletions
diff --git a/configs/linux-cell b/configs/linux-cell
index 016c90076a7..e89a08cd934 100644
--- a/configs/linux-cell
+++ b/configs/linux-cell
@@ -25,12 +25,16 @@ OPT_FLAGS = -O3
SDK = /opt/cell/sdk/usr
-CFLAGS = $(OPT_FLAGS) -Wall -Winline -Wmissing-prototypes \
- -fPIC -m32 -std=c99 -mabi=altivec -maltivec \
+
+COMMON_C_CPP_FLAGS = $(OPT_FLAGS) -Wall -Winline \
+ -fPIC -m32 -mabi=altivec -maltivec \
-I. -I$(SDK)/include \
-DGALLIUM_CELL $(DEFINES)
-CXXFLAGS = $(CFLAGS)
+CFLAGS = $(COMMON_C_CPP_FLAGS) -Wmissing-prototypes -std=c99
+
+CXXFLAGS = $(COMMON_C_CPP_FLAGS)
+
# Omitting glw here:
SRC_DIRS = glsl mesa gallium gallium/winsys glu glut/glx glew