From: Brian Paul Date: Fri, 12 Feb 2010 22:24:54 +0000 (-0700) Subject: cell: fix-up C, CPP flags X-Git-Tag: 062012170305~12852^2~944 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d6f5dd62b9afad90704ba6019829b478738bf0b;p=profile%2Fivi%2Fmesa.git cell: fix-up C, CPP flags Flags like -Wmissing-prototypes don't apply to g++. --- diff --git a/configs/linux-cell b/configs/linux-cell index 016c900..e89a08c 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