debian/rules
raw| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | ifeq (,$(filter $(DEB_HOST_ARCH), mips mipsel mips64el)) |
| 4 | HARDENING := -buildmode=pie -ldflags="-extldflags -Wl,-z,now,-z,relro" |
| 5 | endif |
| 6 | |
| 7 | %: |
| 8 | dh $@ --builddirectory=_build --buildsystem=golang |
| 9 | |
| 10 | override_dh_auto_build: |
| 11 | dh_auto_build -O --buildsystem=golang -- $(HARDENING) |
| 12 | |
| 13 | override_dh_auto_install: |
| 14 | dh_auto_install -- --no-source |
| 15 | |
| 16 | execute_after_dh_auto_build: |
| 17 | ronn -r man/go-sendxmpp.*.ronn |