summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2011-09-25 03:18:29 +0200
committerGrigori Goronzy <greg@blackbox>2011-09-25 03:18:29 +0200
commitffbbcc7954b60b7c301367e42eca2887fe179989 (patch)
tree5f297a90bac291f4ddf12a70a104cb3865dd311b
parent7393996cfe0136f130a6a23bb9fb6f4ddce82d87 (diff)
downloadlibass-ffbbcc7954b60b7c301367e42eca2887fe179989.tar.bz2
libass-ffbbcc7954b60b7c301367e42eca2887fe179989.tar.xz
test: separate linker flags
Use separate linker flags for the test program to avoid unnecessarily linking the libass library against libpng.
-rw-r--r--configure.ac1
-rw-r--r--test/Makefile.am2
2 files changed, 1 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index ddd6d2d..cba77a4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -86,7 +86,6 @@ libpng=false
if test x$enable_test = xyes; then
PKG_CHECK_MODULES([LIBPNG], libpng >= 1.2.0, [
CFLAGS="$CFLAGS $LIBPNG_CFLAGS"
- LIBS="$LIBS $LIBPNG_LIBS"
AC_DEFINE(CONFIG_LIBPNG, 1, [found libpng via pkg-config])
libpng=true])
fi
diff --git a/test/Makefile.am b/test/Makefile.am
index 9adad4d..208c9cf 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -4,4 +4,4 @@ noinst_PROGRAMS = test
test_SOURCES = test.c
test_CPPFLAGS = -I../libass
test_LDADD = ../libass/libass.la
-test_LDFLAGS = -lpng
+test_LDFLAGS = $(AM_LDFLAGS) $(LIBPNG_LIBS)