File: rules

package info (click to toggle)
go-sendxmpp 0.5.6%2Bgit20221206.bbc83969-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 224 kB
  • sloc: makefile: 9
file content (14 lines) | stat: -rwxr-xr-x 349 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/make -f

ifeq (,$(filter $(DEB_HOST_ARCH), mips mipsel mips64el))
HARDENING := -buildmode=pie -ldflags="-extldflags -Wl,-z,now,-z,relro"
endif

%:
	dh $@ --builddirectory=_build --buildsystem=golang

override_dh_auto_build:
	dh_auto_build -O --buildsystem=golang -- $(HARDENING)

override_dh_auto_install:
	dh_auto_install -- --no-source