Skip to contentSkip to conversation

sdl: workaround bug in sdl 2.0.8 headers

PATCH In review Gerd Hoffmann 2 participants 2 messages Mar 7, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sdl: workaround bug in sdl 2.0.8 headers

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892087

---
 configure | 1 +
 1 file changed, 1 insertion(+)
configure +1 -0
index 6f3921c02a..86240f97ac 100755
@@ -2874,6 +2874,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)
Signature · 1 line
2.9.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Gerd Hoffmann

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892087

---
 configure | 1 +
 1 file changed, 1 insertion(+)
Quoted 17 lines
configure +1 -0
index 6f3921c02a..86240f97ac 100755
@@ -2874,6 +2874,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)
Signature · 1 line
2.9.3

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|