Changeset - r22958:b9a9c2b8b9be
[Not reviewed]
master
0 1 0
Charles Pigott - 6 years ago 2018-06-18 20:22:39
charlespigott@googlemail.com
Codechange: Ensure that -lfreetype is always last when linking statically

Fixes weird bug with MinGW
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
config.lib
Show inline comments
 
@@ -1778,13 +1778,13 @@ make_cflags_and_ldflags() {
 

	
 
	if [ -n "$freetype_config" ]; then
 
		CFLAGS="$CFLAGS -DWITH_FREETYPE"
 
		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
 
	fi
 

	
 
	if [ -n "$icu_layout_config" ]; then
0 comments (0 inline, 0 general)