summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2019-03-03 16:59:36 +0000
committerCharles Pigott <charlespigott@googlemail.com>2019-03-03 18:04:36 +0000
commit4ac81b3ebb3ed892ff8195c2732694b00d164a75 (patch)
tree0c2e1d688133a6d3e497e2d229059f1d8c3605bd
parentd9b4ada7e950dd94be30af7da3e61ffe049229b3 (diff)
downloadopenttd-4ac81b3ebb3ed892ff8195c2732694b00d164a75.tar.xz
Fix #7308: SDL linker flags were not added on MinGW
-rw-r--r--config.lib10
1 files changed, 4 insertions, 6 deletions
diff --git a/config.lib b/config.lib
index f825ea210..8d651c502 100644
--- a/config.lib
+++ b/config.lib
@@ -1681,12 +1681,10 @@ make_cflags_and_ldflags() {
CFLAGS="$CFLAGS -DWITH_SDL"
# SDL must not add _GNU_SOURCE as it breaks many platforms
CFLAGS="$CFLAGS `$sdl_config --cflags | sed 's@-D_GNU_SOURCE[^ ]*@@'`"
- if [ "$os" != "MINGW" ] && [ "$os" != "CYGWIN" ]; then
- if [ "$enable_static" != "0" ]; then
- LIBS="$LIBS `$sdl_config --static --libs`"
- else
- LIBS="$LIBS `$sdl_config --libs`"
- fi
+ if [ "$enable_static" != "0" ]; then
+ LIBS="$LIBS `$sdl_config --static --libs`"
+ else
+ LIBS="$LIBS `$sdl_config --libs`"
fi
fi