File: rules

package info (click to toggle)
aespipe 2.4h-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 696 kB
  • sloc: asm: 4,452; ansic: 3,395; makefile: 138; sh: 40
file content (29 lines) | stat: -rwxr-xr-x 626 bytes parent folder | download
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
#!/usr/bin/make -f
#export DH_VERBOSE=1

DEB_BUILD_MAINT_OPTIONS=hardening=-pie reproducible=-fixfilepath,+fixdebugpath

# Test failures occured with LTO on these architectures
ifneq ($(findstring $(DEB_HOST_ARCH), arm64 ppc64el s390x),)
	DEB_BUILD_MAINT_OPTIONS += optimize=-lto
endif
export DEB_BUILD_MAINT_OPTIONS

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

ifeq ($(DEB_HOST_ARCH),amd64)
	DEBIAN_OPTIMIZE := amd64
endif

ifeq ($(DEB_HOST_ARCH),i386)
	DEBIAN_OPTIMIZE := x86
endif

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

override_dh_auto_build:
	dh_auto_build -- $(DEBIAN_OPTIMIZE)