Better fix for dwz failing with clang
authorJochen Sprickerhof <git@jochen.sprickerhof.de>
Sat, 15 Oct 2022 08:10:45 +0000 (10:10 +0200)
committerJochen Sprickerhof <git@jochen.sprickerhof.de>
Sat, 15 Oct 2022 08:10:45 +0000 (10:10 +0200)
debian/rules

index e733b7f770fda9b5d78c40b4f6f37827f6f1910a..dd3ea46bedfafc0d12f593ea7bbe6579e29e51b2 100755 (executable)
@@ -11,10 +11,10 @@ ifneq (,$(filter $(DEB_BUILD_ARCH),mipsel armhf armel))
   PARALLEL=--max-parallel=2
   export CC=/usr/bin/clang
   export CXX=/usr/bin/clang++
-
-# fails with "Unknown debugging section .debug_addr"
-override_dh_dwz:
-
+  # fails with "Unknown debugging section .debug_addr"
+  # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1016936
+  # can be removed once dwz is fixed
+  export DEB_CXXFLAGS_MAINT_APPEND = -g1 -gdwarf-4
 else
   PARALLEL=
 endif