diff options
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | test/Makefile.am | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index ddd6d2dc..cba77a48 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 9adad4da..208c9cf3 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) |