e2a104
diff -pruN paps-0.6.8.orig/src/Makefile.am paps-0.6.8/src/Makefile.am
e2a104
--- paps-0.6.8.orig/src/Makefile.am	2012-11-23 14:22:51.506176037 +0900
e2a104
+++ paps-0.6.8/src/Makefile.am	2012-11-23 14:25:41.828410416 +0900
e2a104
@@ -8,13 +8,14 @@ bin_PROGRAMS = paps
e2a104
 paps_CFLAGS  = -Wall $(CUPS_CFLAGS)
e2a104
 paps_SOURCES = paps.c
e2a104
 paps_LDADD = $(lib_LTLIBRARIES) $(all_libraries)
e2a104
-paps_LDFLAGS = `pkg-config --libs pangoft2` $(CUPS_LIBS)
e2a104
+paps_LDFLAGS = $(CUPS_LIBS)
e2a104
 paps_DEPENDENCIES = $(lib_LTLIBRARIES)
e2a104
 
e2a104
 EXTRA_DIST = test_libpaps.c paps.1
e2a104
 
e2a104
 # set the include path found by configure
e2a104
 INCLUDES= $(all_includes) `pkg-config --cflags pangoft2`
e2a104
+LIBS = `pkg-config --libs pangoft2`
e2a104
 
e2a104
 # Test program
e2a104
 noinst_PROGRAMS = test_libpaps
e2a104
@@ -22,6 +23,5 @@ noinst_PROGRAMS = test_libpaps
e2a104
 
e2a104
 test_libpaps_SOURCES = test_libpaps.c
e2a104
 test_libpaps_LDADD = $(lib_LTLIBRARIES) $(all_libraries)
e2a104
-test_libpaps_LDFLAGS = `pkg-config --libs pangoft2`
e2a104
 test_libpaps_DEPENDENCIES = $(lib_LTLIBRARIES) 
e2a104