View | Details | Raw Unified | Return to bug 241974 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-3 / +10 lines)
Lines 16-22 Link Here
16
BROKEN_armv6=		fails to compile: crt1.c: undefined reference to main
16
BROKEN_armv6=		fails to compile: crt1.c: undefined reference to main
17
BROKEN_armv7=		fails to compile: crt1.c: undefined reference to main
17
BROKEN_armv7=		fails to compile: crt1.c: undefined reference to main
18
BROKEN_mips64=		fails to build: build.sh: clang: not found
18
BROKEN_mips64=		fails to build: build.sh: clang: not found
19
BROKEN_powerpc64=	fails to build: build.sh: clang: not found
20
BROKEN_sparc64=		fails to build: build.sh: clang: not found
19
BROKEN_sparc64=		fails to build: build.sh: clang: not found
21
20
22
TOOLS_DESC=	Build and install nimgrep and nimsuggest
21
TOOLS_DESC=	Build and install nimgrep and nimsuggest
Lines 31-39 Link Here
31
30
32
TLIST=	nimgrep nimsuggest
31
TLIST=	nimgrep nimsuggest
33
32
33
.include <bsd.port.pre.mk>
34
35
.if ${ARCH} == "powerpc64"
36
.  if ${PPC_ABI} == ELFv1 
37
 EXTRA_PATCHES=	${PATCHDIR}/elfv1-*
38
.  endif
39
.endif
40
34
post-patch:
41
post-patch:
35
.if ${COMPILER_TYPE} == clang
42
.if ${PPC_ABI} == ELFv1
36
	@${REINPLACE_CMD} -e '/cc =/s/gcc/clang/' ${WRKSRC}/config/nim.cfg
43
	@${REINPLACE_CMD} -e '/cc =/s/clang/gcc/' ${WRKSRC}/config/nim.cfg
37
.endif
44
.endif
38
45
39
do-build:
46
do-build:
(-)files/elfv1-patch-build.sh (+15 lines)
Line 0 Link Here
1
--- build.sh.orig	2019-10-24 12:53:39 UTC
2
+++ build.sh
3
@@ -84,7 +84,11 @@
4
     ;;
5
   *freebsd* )
6
     myos="freebsd"
7
-    CC="clang"
8
+    if [ "$ucpu" = "powerpc" ] ; then
9
+      CC="gcc"
10
+	else
11
+      CC="clang"
12
+    fi
13
     LINK_FLAGS="$LINK_FLAGS -lm"
14
     ;;
15
   *openbsd* )

Return to bug 241974