mirror of https://github.com/OpenTTD/OpenTTD
Fix #7308: SDL linker flags were not added on MinGW
parent
d9b4ada7e9
commit
4ac81b3ebb
10
config.lib
10
config.lib
|
@ -1681,12 +1681,10 @@ make_cflags_and_ldflags() {
|
||||||
CFLAGS="$CFLAGS -DWITH_SDL"
|
CFLAGS="$CFLAGS -DWITH_SDL"
|
||||||
# SDL must not add _GNU_SOURCE as it breaks many platforms
|
# SDL must not add _GNU_SOURCE as it breaks many platforms
|
||||||
CFLAGS="$CFLAGS `$sdl_config --cflags | sed 's@-D_GNU_SOURCE[^ ]*@@'`"
|
CFLAGS="$CFLAGS `$sdl_config --cflags | sed 's@-D_GNU_SOURCE[^ ]*@@'`"
|
||||||
if [ "$os" != "MINGW" ] && [ "$os" != "CYGWIN" ]; then
|
if [ "$enable_static" != "0" ]; then
|
||||||
if [ "$enable_static" != "0" ]; then
|
LIBS="$LIBS `$sdl_config --static --libs`"
|
||||||
LIBS="$LIBS `$sdl_config --static --libs`"
|
else
|
||||||
else
|
LIBS="$LIBS `$sdl_config --libs`"
|
||||||
LIBS="$LIBS `$sdl_config --libs`"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue