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

Collapse All | Expand All

(-)Makefile (-1 / +6 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 30-35 Link Here
30
.include <bsd.port.pre.mk>
29
.include <bsd.port.pre.mk>
31
30
32
TLIST=	nimgrep nimsuggest
31
TLIST=	nimgrep nimsuggest
32
33
.if ${ARCH} == "powerpc64"
34
.  if ${PPC_ABI} == ELFv1 
35
 EXTRA_PATCHES=	${PATCHDIR}/elfv1-*
36
.  endif
37
.endif
33
38
34
post-patch:
39
post-patch:
35
.if ${COMPILER_TYPE} == clang
40
.if ${COMPILER_TYPE} == clang
(-)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