mirror of https://github.com/OpenTTD/OpenTTD
Codechange: Ensure that -lfreetype is always last when linking statically
Fixes weird bug with MinGWpull/6858/head
parent
63898f61b0
commit
a3d1950b65
|
@ -1781,7 +1781,7 @@ make_cflags_and_ldflags() {
|
||||||
CFLAGS="$CFLAGS `$freetype_config --cflags | tr '\n\r' ' '`"
|
CFLAGS="$CFLAGS `$freetype_config --cflags | tr '\n\r' ' '`"
|
||||||
|
|
||||||
if [ "$enable_static" != "0" ]; then
|
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
|
else
|
||||||
LIBS="$LIBS `$freetype_config --libs | tr '\n\r' ' '`"
|
LIBS="$LIBS `$freetype_config --libs | tr '\n\r' ' '`"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue