summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2018-06-18 21:22:39 +0100
committerPatric Stout <truebrain@openttd.org>2018-07-19 20:24:17 +0200
commita3d1950b656787b76fbccec1aedd63407c34c2f1 (patch)
tree4d0fd5cbb2e6c7da76c3ab54b52f1d7bf0e0b7f0
parent63898f61b0ce4e321b5a7c39da2cfb5b16cfde5f (diff)
downloadopenttd-a3d1950b656787b76fbccec1aedd63407c34c2f1.tar.xz
Codechange: Ensure that -lfreetype is always last when linking statically
Fixes weird bug with MinGW
-rw-r--r--config.lib2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.lib b/config.lib
index 50cfa28d2..755544018 100644
--- a/config.lib
+++ b/config.lib
@@ -1781,7 +1781,7 @@ make_cflags_and_ldflags() {
CFLAGS="$CFLAGS `$freetype_config --cflags | tr '\n\r' ' '`"
if [ "$enable_static" != "0" ]; then
- LIBS="$LIBS `$freetype_config --libs --static | tr '\n\r' ' '`"
+ LIBS="$LIBS `$freetype_config --libs --static | tr '\n\r' ' '` -lfreetype"
else
LIBS="$LIBS `$freetype_config --libs | tr '\n\r' ' '`"
fi