[Mesa-dev] [PATCH 1/3] rbug-gui: fix build for latest Mesa

Marek Olšák maraeo at gmail.com
Sun Aug 24 05:16:40 PDT 2014


From: Marek Olšák <marek.olsak at amd.com>

set c99 because u_math.h fails to compile without it with gcc
---
 Makefile.in  | 5 +++--
 configure.ac | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 8cca095..07ce2e0 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -18,8 +18,9 @@ MESA_INCLUDES = \
 	-I$(MESA)src/gallium/drivers
 
 MESA_LIBS     = \
-	-lm -ldl \
-	$(MESA)/src/gallium/auxiliary/.libs/libgallium.a
+	$(MESA)/src/gallium/auxiliary/.libs/libgallium.a \
+	$(MESA)/src/util/.libs/libmesautil.a \
+	-lm -ldl
 
 TARGET  := rbug-gui
 ODIR    := .obj
diff --git a/configure.ac b/configure.ac
index 4502b20..952f1e4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5,7 +5,7 @@ PKG_PROG_PKG_CONFIG()
 PKG_CHECK_MODULES(GTK,[gtkglext-1.0])
 
 if test $CC = gcc; then
-	GCC_CFLAGS+=" -Wall -W -Werror -Wmissing-prototypes"
+	GCC_CFLAGS+=" -Wall -W -Werror -Wmissing-prototypes -std=c99"
 	GCC_CFLAGS+=" -fvisibility=hidden -fPIC"
 	GCC_LDFLAGS=""
 
-- 
1.9.1



More information about the mesa-dev mailing list