summaryrefslogtreecommitdiff
path: root/config.lib
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-03-28 19:18:36 +0000
committerrubidium <rubidium@openttd.org>2014-03-28 19:18:36 +0000
commitf24d941da1cf6c40dc3f0a7c00d83c9357ea0703 (patch)
tree96ef407633980a1c84daafe93e1cdf182ade12d8 /config.lib
parentbaf0077a84181ca373414fa08b69c9682aa1be69 (diff)
downloadopenttd-f24d941da1cf6c40dc3f0a7c00d83c9357ea0703.tar.xz
(svn r26435) -Fix (r26434): linking issue on OS X
Diffstat (limited to 'config.lib')
-rw-r--r--config.lib2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.lib b/config.lib
index a0e1d5c1c..17ddd4de5 100644
--- a/config.lib
+++ b/config.lib
@@ -1706,7 +1706,7 @@ make_cflags_and_ldflags() {
if [ "$os" = "OSX" ]; then
# fontconfig_config goes via pkg-config on all systems, which doesn't know --prefix
# 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 `$png_config --variable=prefix`/lib/libpng.a `$png_config --libs --static | sed s@-lpng@@`"
+ LIBS="$LIBS `$png_config --variable=prefix`/lib/libpng.a `$png_config --libs --static | sed s@-lpng[0-9]*@@`"
else
LIBS="$LIBS `$png_config --libs --static | tr '\n\r' ' '`"
fi