summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-03-06 22:41:50 +0000
committertruelight <truelight@openttd.org>2007-03-06 22:41:50 +0000
commit14a83be171282e7f709c34a3b63421f0e12edb31 (patch)
treeb619182cf5bffed145554cf36bb2387df24ec3c3
parentc273013b7939123735d46710ae3807374e3228d8 (diff)
downloadopenttd-14a83be171282e7f709c34a3b63421f0e12edb31.tar.xz
(svn r9045) -Fix [Config]: libpng-config --ldflags returns --libs and -L_opts too, no need to call it an extra time (double -lpng12 in LDFLAGS)
-rw-r--r--config.lib4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.lib b/config.lib
index fce063fbf..c33d90db7 100644
--- a/config.lib
+++ b/config.lib
@@ -779,10 +779,10 @@ make_cflags_and_ldflags() {
if [ "$os" = "OSX" ]; then
LIBS="$LIBS `$png_config --prefix`/lib/libpng.a"
else
- LIBS="$LIBS `$png_config --static --ldflags --libs --L_opts | tr '\n\r' ' '`"
+ LIBS="$LIBS `$png_config --static --ldflags | tr '\n\r' ' '`"
fi
else
- LIBS="$LIBS `$png_config --ldflags --libs --L_opts | tr '\n\r' ' '`"
+ LIBS="$LIBS `$png_config --ldflags | tr '\n\r' ' '`"
fi
fi