aboutsummaryrefslogtreecommitdiffstats
path: root/debian/rules
blob: 50914c49fbd2e9287aa07b54bef11bc3e14363b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

ifeq (linux,$(DEB_HOST_ARCH_OS))
	ARCH_DEPENDENT_CONFIGURE_PARAMS = \
		--enable-linux-affinity \
		--enable-delayacct
else
	ARCH_DEPENDENT_CONFIGURE_PARAMS = \
		--enable-hwloc
endif

# hurd-i386 can open /proc (nothing there) and /proc/ which works
ifeq (hurd,$(DEB_HOST_ARCH_OS))
	ARCH_DEPENDENT_CONFIGURE_PARAMS+= --with-proc=/proc/
else
	ARCH_DEPENDENT_CONFIGURE_PARAMS+= --with-sensors
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		--enable-openvz \
		--enable-vserver \
		--enable-unicode \
		$(ARCH_DEPENDENT_CONFIGURE_PARAMS)

© 2014-2022 Faster IT GmbH | imprint | privacy policy