Add patch to add linker flags to test; build-depend on pkg-config.
authorgregor herrmann <gregoa@debian.org>
Wed, 26 Jun 2013 19:16:30 +0000 (21:16 +0200)
committergregor herrmann <gregoa@debian.org>
Wed, 26 Jun 2013 19:16:30 +0000 (21:16 +0200)
debian/control
debian/patches/series
debian/patches/test-libs.patch [new file with mode: 0644]

index 50317778c596f545244bd9b4bd2fff38de5703d2..5b2edb6d4f711bdf5958793d26312a88f63c389b 100644 (file)
@@ -7,6 +7,7 @@ Build-Depends: check,
                debhelper (>= 9),
                dpkg-dev (>= 1.16.1),
                help2man,
+               pkg-config,
                po-debconf,
                zlib1g-dev
 Standards-Version: 3.9.4
index 502dea64769435d5063b08433a91588fbde66f38..c26f738f2a2f21920607d35a90ea24685c7ef4b3 100644 (file)
@@ -6,3 +6,4 @@ armel_ftbfs.patch
 cmdline-r-u.patch
 0001-man-iodine.8-add-note-about-sharing-port-dnsport.patch
 verbose-build.patch
+test-libs.patch
diff --git a/debian/patches/test-libs.patch b/debian/patches/test-libs.patch
new file mode 100644 (file)
index 0000000..f9320c0
--- /dev/null
@@ -0,0 +1,17 @@
+Description: add linker flags for check
+Origin: vendor
+Forwarded: no
+Author: gregor herrmann <gregoa@debian.org>
+Last-Update: 2013-06-26
+
+--- a/tests/Makefile
++++ b/tests/Makefile
+@@ -6,7 +6,7 @@
+ OS = `uname | tr "a-z" "A-Z"`
+ CHECK_PATH = /usr/local
+-LDFLAGS = -L$(CHECK_PATH)/lib -lcheck `../src/osflags link`
++LDFLAGS = -L$(CHECK_PATH)/lib -lcheck `pkg-config --cflags --libs check` `../src/osflags link`
+ CFLAGS += -D$(OS) -I../src -I$(CHECK_PATH)/include -pedantic `../src/osflags cflags` $(CPPFLAGS)
+ all: $(TEST)