Here's a partial patch that fixes the compilation-- but not the linking. I didn't manage to get the linking to work, but I'm sharing what I currently have.

Roland.
From: Roland Mas <lola...@debian.org>
Date: Fri, 24 May 2024 16:01:50 +0200
Subject: Remove -pthread from hsc2hs invocation

---
 binoculars-ng/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/binoculars-ng/Makefile.am b/binoculars-ng/Makefile.am
index ca255c1..5b2c5c7 100644
--- a/binoculars-ng/Makefile.am
+++ b/binoculars-ng/Makefile.am
@@ -18,7 +18,7 @@ AM_GHCFLAGS=\
 	-outputdir=$(builddir)/src
 
 .hsc.hs:
-	$(HSC2HS) $$(echo "$(AM_CFLAGS)" | sed "s%-ftrack-macro-expansion=0%%") -o $@ $<
+	$(HSC2HS) $$(echo "$(AM_CFLAGS)" | sed -e "s%-ftrack-macro-expansion=0%%" -e "s%-pthread%%") -o $@ $<
 
 .hs.o:
 	$(GHC) --make $(AM_GHCFLAGS) -c -o $@ $<

Reply via email to