#!/bin/bash set -euo pipefail patch --no-backup-if-mismatch -p1 <<'PATCH' --- a/debian/rules +++ b/debian/rules @@ -7,6 +7,11 @@ # This has to be exported to make some magic below work. export DH_OPTIONS +ifneq (,$(filter $(DEB_HOST_ARCH), mips mipsel)) + export DEB_CFLAGS_MAINT_APPEND += -mxgot + export DEB_CXXFLAGS_MAINT_APPEND += -mxgot +endif + %: dh $@ PATCH