Bug#1120656: deal.ii: FTBFS: Fix relocation R_LARCH_B26 overflow on loong64

Santiago Vila sanvila at debian.org
Fri Nov 14 20:39:27 GMT 2025


Hi.

+CONFIGURE_CXX_FLAGS=-DDEAL_II_CXX_FLAGS="-Wno-nonnull-compare -Wno-address"
+ifneq (,$(filter $(DEB_HOST_ARCH),loong64))
+CONFIGURE_CXX_FLAGS=-DDEAL_II_CXX_FLAGS="-Wno-nonnull-compare -Wno-address -mcmodel=medium"
+endif

I see what you are trying to do, and I wonder if it would be possible
for you to use the += construction instead:

VARIABLE := default-value
ifneq(condition)
  VARIABLE += additional-flags
endif

which needs less maintenance in the long run (for example, adding
things to default-value requires changing a single line, not two).

Thanks.



More information about the debian-science-maintainers mailing list