From ffbbcc7954b60b7c301367e42eca2887fe179989 Mon Sep 17 00:00:00 2001 From: Grigori Goronzy Date: Sun, 25 Sep 2011 03:18:29 +0200 Subject: test: separate linker flags Use separate linker flags for the test program to avoid unnecessarily linking the libass library against libpng. --- configure.ac | 1 - test/Makefile.am | 2 +- 2 files changed, 1 insertion(+), 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) -- cgit v1.2.3