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

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)'