<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=GBK">
</head>
<body>
<p>Sorry it took so long to reply. Because I need to rebuild many
libghc-* packages.</p>
<p>With ghc-9.6.5-1~exp1, the error of R_LARCH_B26 overflowing also
happened.</p>
<p>So can we change the options for loong64?<br>
</p>
<p><br>
</p>
<p>On Sat, 1 Jun 2024 15:01:13 +0800 zhangdandan <zhangdandan@loongson.cn>
wrote:</zhangdandan@loongson.cn></p>
<zhangdandan@loongson.cn>> diff --git a/debian/rules
b/debian/rules<br>
> index 6515e18..6704ff0 100755<br>
> --- a/debian/rules<br>
> +++ b/debian/rules<br>
> @@ -102,6 +102,10 @@ ifneq (,$(filter noopt,
$(DEB_BUILD_OPTIONS)))<br>
> EXTRA_HADRIAN_FLAGS += "*.*.rts.*.opts += -O0"<br>
> endif<br>
> <br>
> +ifneq (,$(filter loong64, $(DEB_HOST_ARCH)))<br>
> + EXTRA_HADRIAN_FLAGS += "*.*.ghc.*.opts +=
-optc-mcmodel=medium"<br>
> +endif<br>
> +<br>
> ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))<br>
> NUMJOBS = $(patsubst parallel=%,%,$(filter
parallel=%,$(DEB_BUILD_OPTIONS)))<br>
> endif<br>
</zhangdandan@loongson.cn><br>
</body>
</html>