[Bug 236346] fix build of some haskell ports with base GNU ld

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Mar 14 17:30:35 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236346

--- Comment #4 from mikael.urankar at gmail.com ---
(In reply to Piotr Kubaj from comment #3)
Ok, I'm seeing that too with DYNAMIC option on (I turned it off to do some
quick test and forgot to update my option)

I think we can use devel/binutils by default on ppc64 since it's kind of
mandatory on ppc64:

Index: bsd.cabal.mk
===================================================================
--- bsd.cabal.mk        (revision 495702)
+++ bsd.cabal.mk        (working copy)
@@ -54,7 +54,7 @@

 CABAL_LIBDIR=          ${PREFIX}/lib/cabal/ghc-${GHC_VERSION}
 CABAL_LIBSUBDIR=       ${PACKAGE}
-CABAL_ARCH=            ${ARCH:S/amd64/x86_64/:C/armv.*/arm/}
+CABAL_ARCH=           
${ARCH:S/amd64/x86_64/:C/armv.*/arm/:S/powerpc64/ppc64/}
 CABAL_ARCHSUBDIR=      ${CABAL_ARCH}-freebsd-ghc-${GHC_VERSION}
 CABAL_LIBDIR_REL=      ${CABAL_LIBDIR:S,^${PREFIX}/,,}

@@ -93,6 +93,9 @@
 BUILD_DEPENDS+=        ghc>=${GHC_VERSION}:lang/ghc
 .endif

+.if ${ARCH} == powerpc64
+USE_BINUTILS= yes
+.endif

 CONFIGURE_ARGS+=       --with-gcc=${CC} --with-ld=${LD} --with-ar=${AR}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the freebsd-haskell mailing list