d/rules: Fix armel buildd
authorEmanuele Rocca <ema@debian.org>
Fri, 12 Jan 2024 16:08:09 +0000 (17:08 +0100)
committerMathieu Malaterre <malat@debian.org>
Fri, 12 Jan 2024 16:08:37 +0000 (17:08 +0100)
debian/rules

index 543fba3dc65344a01711ba355203ee8f6911f183..23a7a03b303bd0fedcb04a282edd056d96333c19 100755 (executable)
@@ -2,7 +2,12 @@
 #export DH_VERBOSE=1
 
 # export DEB_BUILD_MAINT_OPTIONS = hardening=+pie
-export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=+lto
+ifeq ($(DEB_TARGET_ARCH),armel)
+  # https://lists.debian.org/debian-arm/2024/01/msg00031.html
+  export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-stackclash optimize=+lto
+else
+  export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=+lto
+endif
 
 # needed for the tests
 export DCMDICTPATH=$(CURDIR)/dcmdata/data/dicom.dic