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

Jakob Bornecrantz wallbraker at gmail.com
Sun Aug 24 12:05:06 PDT 2014


On Sun, Aug 24, 2014 at 2:16 PM, Marek Olšák <maraeo at gmail.com> wrote:
> 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(-)

Reviewed-by: Jakob Bornecrantz <jakob at vmware.com>

>
> 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
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list