config.lib
changeset 6570 df82d4634996
parent 6569 bc3911eeccea
child 6572 e35266003390
--- a/config.lib	Tue Mar 06 22:45:30 2007 +0000
+++ b/config.lib	Tue Mar 06 22:55:18 2007 +0000
@@ -793,7 +793,8 @@
 		if [ "$enable_static" != "0" ]; then
 			if [ "$os" = "OSX" ]; then
 				# fontconfig_config goes via pkg-config on all systems, which doesn't know --prefix
-				LIBS="$LIBS `$fontconfig_config --variable=prefix`/lib/libfontconfig.a"
+				# Also, despite the reason we link to the .a file ourself (because we can't use -static), we do need to ask pkg-config about possible other deps
+				LIBS="$LIBS `$fontconfig_config --variable=prefix`/lib/libfontconfig.a `$fontconfig_config --libs --static | sed s/-lfontconfig//`"
 			else
 				LIBS="$LIBS `$fontconfig_config --libs --static | tr '\n\r' '  '`"
 			fi