debian/rules: Build without systemd support on non-Linux kernels
This commit is contained in:

committed by
John Paul Adrian Glaubitz

parent
6f4d3b088d
commit
54bf5136a7
9
debian/rules
vendored
9
debian/rules
vendored
@ -6,6 +6,13 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
||||
DPKG_EXPORT_BUILDFLAGS = 1
|
||||
include /usr/share/dpkg/buildflags.mk
|
||||
|
||||
DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
|
||||
ifneq (,$(findstring linux,$(DEB_HOST_ARCH_OS)))
|
||||
CONFIGURE_SYSTEMD = --enable-systemd
|
||||
else
|
||||
CONFIGURE_SYSTEMD = --disable-systemd
|
||||
endif
|
||||
|
||||
%:
|
||||
dh $@ $(DHFLAGS)
|
||||
|
||||
@ -20,7 +27,7 @@ override_dh_auto_configure:
|
||||
--libexecdir=/usr/lib/${pkgname} \
|
||||
--localstatedir=/var \
|
||||
--disable-static \
|
||||
--enable-systemd \
|
||||
$(CONFIGURE_SYSTEMD) \
|
||||
--with-gtk=3.0
|
||||
|
||||
override_dh_strip:
|
||||
|
Reference in New Issue
Block a user