[Git][haskell-team/DHG_packages][master] 2 commits: Build with --enable-ld-override on loong64

John Paul Adrian Glaubitz (@glaubitz) gitlab at salsa.debian.org
Sun Jan 25 21:48:44 GMT 2026



John Paul Adrian Glaubitz pushed to branch master at Debian Haskell Group / DHG_packages


Commits:
34f98df5 by John Paul Adrian Glaubitz at 2026-01-25T22:45:24+01:00
Build with --enable-ld-override on loong64

- - - - -
3c743bf9 by John Paul Adrian Glaubitz at 2026-01-25T22:47:54+01:00
Drop --enable-unregisterised on loong64 after bootstrap

- - - - -


3 changed files:

- p/ghc/debian/changelog
- p/ghc/debian/control
- p/ghc/debian/rules


Changes:

=====================================
p/ghc/debian/changelog
=====================================
@@ -1,6 +1,8 @@
 ghc (9.10.3-4) UNRELEASED; urgency=medium
 
   * Build with -optc-no-integrated-cpp on hppa
+  * Build with --enable-ld-override on loong64 (Closes: #1125455)
+  * Drop --enable-unregisterised on loong64 after bootstrap
 
  -- John Paul Adrian Glaubitz <glaubitz at physik.fu-berlin.de>  Sun, 25 Jan 2026 17:56:20 +0100
 


=====================================
p/ghc/debian/control
=====================================
@@ -17,6 +17,7 @@ Build-Depends:
   ghc:native (>= 9.6),
   hadrian:native (>= 9.10.3~) <!pkg.ghc.nohadrian>,
   hadrian:native (<< 9.10.4~) <!pkg.ghc.nohadrian>,
+  lld [loong64],
   llvm-21 (>= 1:21.1.6) [armel armhf s390x riscv64 loong64],
   clang-21 [armel armhf s390x riscv64 loong64],
   libgmp-dev,


=====================================
p/ghc/debian/rules
=====================================
@@ -70,7 +70,7 @@ ifneq (,$(filter armel armhf, $(DEB_HOST_ARCH)))
   EXTRA_INSTALL_CONFIGURE_FLAGS += --enable-ld-override
 endif
 
-ifneq (,$(filter loong64 powerpcspe x32, $(DEB_HOST_ARCH)))
+ifneq (,$(filter powerpcspe x32, $(DEB_HOST_ARCH)))
   EXTRA_CONFIGURE_FLAGS += --enable-unregisterised
 endif
 
@@ -113,6 +113,10 @@ ifneq (,$(filter loong64, $(DEB_HOST_ARCH)))
   EXTRA_HADRIAN_FLAGS += "*.*.ghc.c.opts += -optc-mcmodel=medium"
   EXTRA_HADRIAN_FLAGS += "*.*.ghc.hs.opts += -optc-mcmodel=medium"
   EXTRA_HADRIAN_FLAGS += "*.*.cc.c.opts += -optc-mcmodel=medium"
+# See https://gitlab.haskell.org/ghc/ghc/-/issues/25531
+# LLVM backend is not compatible with PLT, ld.bfd will generate wrong relocs.
+  EXTRA_CONFIGURE_FLAGS += --enable-ld-override
+  EXTRA_INSTALL_CONFIGURE_FLAGS += --enable-ld-override
 endif
 
 ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))



View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/compare/79afeacffbd11782005e3b55e85ae84ec4b81168...3c743bf92d259eeeb75d0ea689cf6be40b0142b6

-- 
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/compare/79afeacffbd11782005e3b55e85ae84ec4b81168...3c743bf92d259eeeb75d0ea689cf6be40b0142b6
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-commits/attachments/20260125/fc07a231/attachment-0001.htm>


More information about the Pkg-haskell-commits mailing list