summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 635dcb7c0c532c010111b5ab64966ad14de385c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/make -f

# https://wiki.debian.org/HardeningWalkthrough
export DEB_BUILD_MAINT_OPTIONS  = hardening=+all
export DEB_CFLAGS_MAINT_APPEND  = -Os -Wall -pedantic

# --as-needed breaks the build of the package, so let's turn it off
# explicitly. This is not needed in Debian, but the default may change.
# Ubuntu already defaults to --as-needed, so disabling it makes the
# package build there unmodified.
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--no-as-needed

%:
	dh $@