summaryrefslogtreecommitdiff
path: root/config.lib
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-03-06 22:55:18 +0000
committertruelight <truelight@openttd.org>2007-03-06 22:55:18 +0000
commita0df4f4b6e86af37c4ae1feda79841f9c6395c42 (patch)
tree95cb37428331da4ff7b636eab5afd46574fcab59 /config.lib
parent26279df1eee5f0b8501b480657a5b2b7e0ebae8c (diff)
downloadopenttd-a0df4f4b6e86af37c4ae1feda79841f9c6395c42.tar.xz
(svn r9047) -Fix [FS#651]: request static deps from fontconfig in OSX
Diffstat (limited to 'config.lib')
-rw-r--r--config.lib3
1 files changed, 2 insertions, 1 deletions
diff --git a/config.lib b/config.lib
index f30a22157..f3d0b6709 100644
--- a/config.lib
+++ b/config.lib
@@ -793,7 +793,8 @@ make_cflags_and_ldflags() {
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