gallium/svga: Make sure -std=gnu99 is set.
authorJohannes Obermayr <johannesobermayr@gmx.de>
Sat, 12 Jan 2013 21:13:47 +0000 (22:13 +0100)
committerMatt Turner <mattst88@gmail.com>
Mon, 14 Jan 2013 21:32:13 +0000 (13:32 -0800)
This is a work-around until configure.ac stops touching CFLAGS.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/gallium/drivers/svga/Makefile.am
src/gallium/winsys/svga/drm/Makefile.am

index e08a133bf71ceede11c1b7fb2221aac999623a93..fdaa3c8ebc4971d6867b71c74053fb632700da4b 100644 (file)
@@ -29,7 +29,8 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/include \
        $(GALLIUM_CFLAGS)
 
-AM_CFLAGS = -std=gnu99
+#On some systems -std= must be added to CFLAGS to be the last -std=
+CFLAGS += -std=gnu99
 
 noinst_LTLIBRARIES = libsvga.la
 
index 452af3ae0340a5439a95d9b69ca5a225b3658459..53bbcc244fdc5edd135f2204c7137e9260a7a049 100644 (file)
@@ -30,7 +30,9 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/src/gallium/drivers \
        $(GALLIUM_CFLAGS) \
        $(LIBDRM_CFLAGS)
-AM_CFLAGS = -std=gnu99 -D_FILE_OFFSET_BITS=64
+
+#On some systems -std= must be added to CFLAGS to be the last -std=
+CFLAGS += -std=gnu99 -D_FILE_OFFSET_BITS=64
 
 noinst_LTLIBRARIES = libsvgadrm.la