Use pkg-config to get the cunit library.

This commit is contained in:
Jim Morrison 2012-02-07 14:16:55 -08:00
parent 7f41ec03bd
commit 4ebfa021ba
1 changed files with 2 additions and 2 deletions

View File

@ -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