svn commit: r529272 - head/lang/ghc
Gleb Popov
arrowd at FreeBSD.org
Fri Mar 27 17:45:49 UTC 2020
Author: arrowd
Date: Fri Mar 27 17:45:38 2020
New Revision: 529272
URL: https://svnweb.freebsd.org/changeset/ports/529272
Log:
lang/ghc: Don't use GCC on ARM arches. Cleanup Makefile.
PR: 245057
Submitted by: mikael
Modified:
head/lang/ghc/Makefile
Modified: head/lang/ghc/Makefile
==============================================================================
--- head/lang/ghc/Makefile Fri Mar 27 17:31:08 2020 (r529271)
+++ head/lang/ghc/Makefile Fri Mar 27 17:45:38 2020 (r529272)
@@ -103,12 +103,7 @@ LLVM_VERSION= 60
CONFIGURE_ARGS+= --enable-dtrace=0
.endif
-.if ${ARCH} == amd64 || ${ARCH} == i386 || (defined(PPC_ABI) && ${PPC_ABI} == ELFv2)
BOOT_GHC_VERSION= 8.6.5
-.else
-BOOT_GHC_VERSION= 8.6.3
-.endif
-
# LLVM version that bootstrap compiler uses
BOOT_LLVM_VERSION= 60
@@ -168,22 +163,15 @@ RUN_DEPENDS+= llc${BOOT_LLVM_VERSION}:devel/llvm${BOO
. endif
.endif
-.if ${ARCH} == aarch64 || ${ARCH} == armv6 || ${ARCH} == armv7
-USE_GCC= yes
-
-. if ${OSVERSION} < 1200086
-IGNORE= lang/ghc requires at least FreeBSD 12.0-RELEASE
+.if ${ARCH} == aarch64 || ${ARCH} == armv6 || ${ARCH} == armv7 || ${ARCH} == powerpc64
+. if ${OSVERSION} < 1201000
+IGNORE= lang/ghc requires at least FreeBSD 12.1-RELEASE
. endif
. ifdef QEMU_EMULATING
IGNORE= qemu-user-static isn't able to build lang/ghc, but it builds fine on a real hardware
. endif
.endif
-# Use binutils strip if we are using gcc, as it is faster that base one. See PR 234949
-.if defined(USE_GCC)
-CONFIGURE_ENV+= STRIP=${LOCALBASE}/bin/strip
-.endif
-
PLIST_SUB+= GHC_VERSION=${GHC_VERSION} GHC_LIBDIR=${GHC_LIBDIR_REL}
.if empty(PORT_OPTIONS:MBOOT)
@@ -233,12 +221,6 @@ post-patch:
s|%%AR%%|${AR}|; \
s|%%LD%%|${LD}|' \
${WRKSRC}/libraries/Cabal/Cabal/Distribution/Simple/Program/Builtin.hs
-# we must use binutils:ld on arm
-.if ${ARCH} == aarch64 || ${ARCH} == armv6 || ${ARCH} == armv7
- @${REINPLACE_CMD} -e 's|LD_NO_GOLD=ld|LD_NO_GOLD=${LOCALBASE}/bin/ld|' \
- ${WRKSRC}/aclocal.m4
-.endif
-
@${REINPLACE_CMD} -e 's/@SettingsLlcCommand@/llc${LLVM_VERSION}/' ${WRKSRC}/settings.in
@${REINPLACE_CMD} -e 's/@SettingsOptCommand@/opt${LLVM_VERSION}/' ${WRKSRC}/settings.in
More information about the svn-ports-all
mailing list