Add pkg-config --cflags libbsd-overlay to CPPFLAGS on kfreebsd. This

let's code expecting bsd headers on bsd work without patching. Thanks
Julien Cristau for the suggestion. Closes: #721886
This commit is contained in:
Michael Biebl
2013-09-08 12:30:28 +00:00
parent 3a0307c2f4
commit e38bc70a61
2 changed files with 7 additions and 0 deletions

3
debian/changelog vendored
View File

@@ -1,6 +1,9 @@
libgtop2 (2.28.5-2) UNRELEASED; urgency=low
* Add explicit Build-Depends on libbsd-dev for kfreebsd.
* Add `pkg-config --cflags libbsd-overlay` to CPPFLAGS on kfreebsd. This
let's code expecting bsd headers on bsd work without patching. Thanks
Julien Cristau for the suggestion. Closes: #721886
-- Michael Biebl <biebl@debian.org> Sun, 08 Sep 2013 14:22:12 +0200

4
debian/rules vendored
View File

@@ -13,6 +13,10 @@ SHARED_PKG := libgtop2-7
LDFLAGS += -Wl,-z,defs -Wl,-O1 -Wl,--as-needed
ifeq ($(DEB_HOST_ARCH_OS),kfreebsd)
CPPFLAGS += $(shell pkg-config --cflags libbsd-overlay)
endif
DEB_DH_AUTORECONF_ARGS = --as-needed
DEB_DH_MAKESHLIBS_ARGS_ALL += -V '$(SHARED_PKG) (>= 2.24.0)'