1
0
Fork 0

Codechange: Ensure that -lfreetype is always last when linking statically

Fixes weird bug with MinGW
pull/6858/head
Charles Pigott 2018-06-18 21:22:39 +01:00 committed by Patric Stout
parent 63898f61b0
commit a3d1950b65
1 changed files with 1 additions and 1 deletions

View File

@ -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