From: Gerd Hoffmann Date: Wed, 7 Mar 2018 15:42:57 +0000 (+0100) Subject: sdl: workaround bug in sdl 2.0.8 headers X-Git-Tag: qemu-xen-4.12.0-rc1~393^2~11 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=2ca5c43091324a68772dc348cdf157c63888c168;p=qemu-xen.git sdl: workaround bug in sdl 2.0.8 headers https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892087 Signed-off-by: Gerd Hoffmann Reviewed-by: Daniel P. Berrangé Message-id: 20180307154258.9313-1-kraxel@redhat.com --- diff --git a/configure b/configure index 356abee025..8c7124bf2b 100755 --- a/configure +++ b/configure @@ -2875,6 +2875,7 @@ if test "$sdl" != "no" ; then int main( void ) { return SDL_Init (SDL_INIT_VIDEO); } EOF sdl_cflags=$($sdlconfig --cflags 2>/dev/null) + sdl_cflags="$sdl_cflags -Wno-undef" # workaround 2.0.8 bug if test "$static" = "yes" ; then if $pkg_config $sdlname --exists; then sdl_libs=$($pkg_config $sdlname --static --libs 2>/dev/null)