diff mbox

[for-2.3?,1/7] tests/tcg: Fix test_path build

Message ID 1428777292-24628-2-git-send-email-afaerber@suse.de
State New
Headers show

Commit Message

Andreas Färber April 11, 2015, 6:34 p.m. UTC
tests/tcg/test_path.c incorporates source files that rely on GLib.
Add GLIB_CFLAGS to QEMU_CFLAGS to fix the build.

Signed-off-by: Andreas Färber <afaerber@suse.de>
---
 tests/tcg/Makefile | 1 +
 1 file changed, 1 insertion(+)

Comments

Alex Bennée April 13, 2015, 11:57 a.m. UTC | #1
Andreas Färber <afaerber@suse.de> writes:

> tests/tcg/test_path.c incorporates source files that rely on GLib.
> Add GLIB_CFLAGS to QEMU_CFLAGS to fix the build.
>
> Signed-off-by: Andreas Färber <afaerber@suse.de>

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>

> ---
>  tests/tcg/Makefile | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/tests/tcg/Makefile b/tests/tcg/Makefile
> index 89e3342..64f661a 100644
> --- a/tests/tcg/Makefile
> +++ b/tests/tcg/Makefile
> @@ -10,6 +10,7 @@ CC_X86_64=$(CC_I386) -m64
>  QEMU_INCLUDES += -I../..
>  CFLAGS=-Wall -O2 -g -fno-strict-aliasing
>  #CFLAGS+=-msse2
> +QEMU_CFLAGS += $(GLIB_CFLAGS)
>  LDFLAGS=
>  
>  # TODO: automatically detect ARM and MIPS compilers, and run those too
diff mbox

Patch

diff --git a/tests/tcg/Makefile b/tests/tcg/Makefile
index 89e3342..64f661a 100644
--- a/tests/tcg/Makefile
+++ b/tests/tcg/Makefile
@@ -10,6 +10,7 @@  CC_X86_64=$(CC_I386) -m64
 QEMU_INCLUDES += -I../..
 CFLAGS=-Wall -O2 -g -fno-strict-aliasing
 #CFLAGS+=-msse2
+QEMU_CFLAGS += $(GLIB_CFLAGS)
 LDFLAGS=
 
 # TODO: automatically detect ARM and MIPS compilers, and run those too