From a3d1950b656787b76fbccec1aedd63407c34c2f1 Mon Sep 17 00:00:00 2001 From: Charles Pigott Date: Mon, 18 Jun 2018 21:22:39 +0100 Subject: Codechange: Ensure that -lfreetype is always last when linking statically Fixes weird bug with MinGW --- config.lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2