Skip to content

Commit

Permalink
test: separate linker flags
Browse files Browse the repository at this point in the history
Use separate linker flags for the test program to avoid unnecessarily
linking the libass library against libpng.
  • Loading branch information
grigorig committed Sep 25, 2011
1 parent 7393996 commit ffbbcc7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit ffbbcc7

Please sign in to comment.