From 4ebfa021ba415e1a265021aa85ec5d33845303fa Mon Sep 17 00:00:00 2001 From: Jim Morrison Date: Tue, 7 Feb 2012 14:16:55 -0800 Subject: [PATCH] Use pkg-config to get the cunit library. --- tests/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 18b4a779..f66d60c6 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -36,8 +36,8 @@ HFILES = spdylay_pq_test.h spdylay_map_test.h spdylay_queue_test.h \ main_SOURCES = $(HFILES) $(OBJECTS) main_LDADD = ${top_builddir}/lib/libspdylay.la -main_LDFLAGS = -static -lcunit -lncurses -AM_CFLAGS = -Wall -g -O2 -I${top_srcdir}/lib -I${top_srcdir}/lib/includes +main_LDFLAGS = -static `pkg-config --libs cunit` -lncurses +AM_CFLAGS = -Wall -g -O2 -I${top_srcdir}/lib -I${top_srcdir}/lib/includes `pkg-config --cflags cunit` TESTS = main