FreeBSD Bugzilla – Attachment 209370 Details for
Bug 241974
lang/nim: Remove BROKEN for powerpc64
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Updated patch to fix build on powerpc64
patch-powerpc64-nim (text/plain), 1.20 KB, created by
Curtis Hamilton
on 2019-11-23 21:25:35 UTC
(
hide
)
Description:
Updated patch to fix build on powerpc64
Filename:
MIME Type:
Creator:
Curtis Hamilton
Created:
2019-11-23 21:25:35 UTC
Size:
1.20 KB
patch
obsolete
>--- Makefile.orig >+++ Makefile >@@ -16,7 +16,6 @@ > 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,17 @@ > > TLIST= nimgrep nimsuggest > >+.include <bsd.port.pre.mk> >+ >+.if ${ARCH} == "powerpc64" >+. if ${PPC_ABI} == ELFv1 >+ EXTRA_PATCHES= ${PATCHDIR}/elfv1-* >+. endif >+.endif >+ > post-patch: >-.if ${COMPILER_TYPE} == clang >- @${REINPLACE_CMD} -e '/cc =/s/gcc/clang/' ${WRKSRC}/config/nim.cfg >+.if ${PPC_ABI} == ELFv1 >+ @${REINPLACE_CMD} -e '/cc =/s/clang/gcc/' ${WRKSRC}/config/nim.cfg > .endif > > do-build: >--- files/elfv1-patch-build.sh.orig >+++ files/elfv1-patch-build.sh >@@ -0,0 +1,15 @@ >+--- build.sh.orig 2019-10-24 12:53:39 UTC >++++ build.sh >+@@ -84,7 +84,11 @@ >+ ;; >+ *freebsd* ) >+ myos="freebsd" >+- CC="clang" >++ if [ "$ucpu" = "powerpc" ] ; then >++ CC="gcc" >++ else >++ CC="clang" >++ fi >+ LINK_FLAGS="$LINK_FLAGS -lm" >+ ;; >+ *openbsd* )
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 241974
:
209232
|
209368
|
209370
|
209410
|
209411