# HG changeset patch # User Charles Pigott # Date 2018-06-18 20:22:39 # Node ID b9a9c2b8b9be75d155177240f633de6c28ac0ac9 # Parent 2af6ade860c316682f9a8971c9ccbb645bf05cd8 Codechange: Ensure that -lfreetype is always last when linking statically Fixes weird bug with MinGW diff --git a/config.lib b/config.lib --- 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