From 2d6f5dd62b9afad90704ba6019829b478738bf0b Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 12 Feb 2010 15:24:54 -0700 Subject: cell: fix-up C, CPP flags Flags like -Wmissing-prototypes don't apply to g++. --- configs/linux-cell | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'configs') 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 -- cgit v1.2.3