gallium: Fix build when exiting CFLAGS contains a path with different gl.h
[mesa.git] / src / gallium / state_trackers / egl / Makefile
index ea4cec0bb84ba97bd5a930707cfbfac6fb9ec7e3..d266ae2d6281c3e84bf5d5cdf0a9f98786aab284 100644 (file)
@@ -6,14 +6,15 @@ TOP        = ../../../..
 
 include ${TOP}/configs/current
 
-CFLAGS += -g -Wall -Werror-implicit-function-declaration -fPIC \
+CFLAGS:= -g -Wall -Werror-implicit-function-declaration -fPIC \
           -I${GALLIUMDIR}/include \
           -I${GALLIUMDIR}/auxiliary \
           -I${TOP}/src/mesa/drivers/dri/common \
           -I${TOP}/src/mesa \
           -I$(TOP)/include \
           -I$(TOP)/src/egl/main \
-          ${LIBDRM_CFLAGS}
+          ${LIBDRM_CFLAGS} \
+          ${CFLAGS}
 
 #############################################