Add patch to add linker flags to test; build-depend on pkg-config.
[debian/iodine.git] / debian / patches / test-libs.patch
1 Description: add linker flags for check
2 Origin: vendor
3 Forwarded: no
4 Author: gregor herrmann <gregoa@debian.org>
5 Last-Update: 2013-06-26
6
7 --- a/tests/Makefile
8 +++ b/tests/Makefile
9 @@ -6,7 +6,7 @@
10  OS = `uname | tr "a-z" "A-Z"`
11  
12  CHECK_PATH = /usr/local
13 -LDFLAGS = -L$(CHECK_PATH)/lib -lcheck `../src/osflags link`
14 +LDFLAGS = -L$(CHECK_PATH)/lib -lcheck `pkg-config --cflags --libs check` `../src/osflags link`
15  CFLAGS += -D$(OS) -I../src -I$(CHECK_PATH)/include -pedantic `../src/osflags cflags` $(CPPFLAGS)
16  
17  all: $(TEST)