summaryrefslogtreecommitdiff
path: root/lang/nim/Makefile
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2019-11-27 19:55:14 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2019-11-27 19:55:14 +0000
commitf3ea85ac57e43574558faba7c4056b7398e7f3c9 (patch)
tree895a54b123cb8cf96206381682659514f3cb8a40 /lang/nim/Makefile
parentmath/curv: fix build on GCC architectures (diff)
lang/nim: Remove BROKEN for powerpc64
Fix build on powerpc64 elfv1 and elfv2. PR: 241974 Submitted by: hamiltcl@verizon.net Approved by: ports@nicandneal.net (maintainer), tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D22568
Notes
Notes: svn path=/head/; revision=518529
Diffstat (limited to 'lang/nim/Makefile')
-rw-r--r--lang/nim/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/lang/nim/Makefile b/lang/nim/Makefile
index 2e2f8d0e8fe0..18823647d4c8 100644
--- a/lang/nim/Makefile
+++ b/lang/nim/Makefile
@@ -16,7 +16,6 @@ BROKEN_aarch64= fails to compile: crt1.c: undefined reference to main
BROKEN_armv6= fails to compile: crt1.c: undefined reference to main
BROKEN_armv7= fails to compile: crt1.c: undefined reference to main
BROKEN_mips64= fails to build: build.sh: clang: not found
-BROKEN_powerpc64= fails to build: build.sh: clang: not found
BROKEN_sparc64= fails to build: build.sh: clang: not found
TOOLS_DESC= Build and install nimgrep and nimsuggest
@@ -31,9 +30,15 @@ USES= compiler tar:xz
TLIST= nimgrep nimsuggest
+.if ${ARCH} == "powerpc64"
+. if defined(PPC_ABI) && ${PPC_ABI} == ELFv1
+EXTRA_PATCHES= ${PATCHDIR}/elfv1-patch-build.sh
+. endif
+.endif
+
post-patch:
-.if ${COMPILER_TYPE} == clang
- @${REINPLACE_CMD} -e '/cc =/s/gcc/clang/' ${WRKSRC}/config/nim.cfg
+.if defined(PPC_ABI) && ${PPC_ABI} == ELFv1
+ @${REINPLACE_CMD} -e '/cc =/s/clang/gcc/' ${WRKSRC}/config/nim.cfg
.endif
do-build: