Bug#1071151: ghc: Use extra --ghc-options in d/rules on loong64
fanpeng
fanpeng at loongson.cn
Mon Jul 29 09:53:48 BST 2024
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-maintainers/attachments/20240729/24f4b796/attachment.htm>
More information about the Pkg-haskell-maintainers
mailing list