Sorry it took so long to reply. Because I need to rebuild many libghc-* packages.

With ghc-9.6.5-1~exp1, the error of R_LARCH_B26 overflowing also happened.

So can we change the options for loong64?


On Sat, 1 Jun 2024 15:01:13 +0800 zhangdandan wrote:

> diff --git a/debian/rules b/debian/rules
> index 6515e18..6704ff0 100755
> --- a/debian/rules
> +++ b/debian/rules
> @@ -102,6 +102,10 @@ ifneq (,$(filter noopt, $(DEB_BUILD_OPTIONS)))
> EXTRA_HADRIAN_FLAGS += "*.*.rts.*.opts += -O0"
> endif
>
> +ifneq (,$(filter loong64, $(DEB_HOST_ARCH)))
> + EXTRA_HADRIAN_FLAGS += "*.*.ghc.*.opts += -optc-mcmodel=medium"
> +endif
> +
> ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
> NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
> endif

Reply via email to