diff options
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/debian/rules b/debian/rules index 84cfd56..0dcbb30 100755 --- a/debian/rules +++ b/debian/rules @@ -23,7 +23,7 @@ DEB_COPTS = $(COPTS) TARGET = install-i18n -DEB_BUILD_ARCH_OS := $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS) +DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) # Force package version based on git tags. ifneq (,$(filter gitversion,$(DEB_BUILD_OPTIONS))) @@ -35,7 +35,7 @@ ifeq (,$(filter nodbus,$(DEB_BUILD_OPTIONS))) endif ifeq (,$(filter noconntrack,$(DEB_BUILD_OPTIONS))) -ifeq ($(DEB_BUILD_ARCH_OS),linux) +ifeq ($(DEB_HOST_ARCH_OS),linux) DEB_COPTS += -DHAVE_CONNTRACK endif endif @@ -83,6 +83,11 @@ ifeq (,$(filter nodnssec,$(DEB_BUILD_OPTIONS))) DEB_COPTS += -DHAVE_DNSSEC endif +ifneq ($(DEB_HOST_ARCH_OS),linux) + # For strlcpy in FreeBSD + LDFLAGS += -lbsd +endif + clean: $(checkdir) rm -rf debian/daemon debian/base debian/utils debian/*~ debian/files debian/substvars debian/utils-substvars @@ -171,7 +176,7 @@ endif chmod -R g-ws debian/base dpkg --build debian/base .. -ifeq ($(DEB_BUILD_ARCH_OS),linux) +ifeq ($(DEB_HOST_ARCH_OS),linux) rm -rf debian/utils install -m 755 -d debian/utils/DEBIAN \ -d debian/utils/usr/share/man/man1 \ |