git: c62f15abadec - main - lang/nim: fix build on powerpc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 07 Nov 2021 12:19:45 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=c62f15abadec207d11f4970bbe27666638e0bf05 commit c62f15abadec207d11f4970bbe27666638e0bf05 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2021-11-07 12:15:01 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2021-11-07 12:15:01 +0000 lang/nim: fix build on powerpc build.sh was misdetecting powerpc for powerpc64. --- lang/nim/files/patch-build.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lang/nim/files/patch-build.sh b/lang/nim/files/patch-build.sh new file mode 100644 index 000000000000..aa7b1edb9930 --- /dev/null +++ b/lang/nim/files/patch-build.sh @@ -0,0 +1,15 @@ +--- build.sh.orig 2021-11-07 03:12:45 UTC ++++ build.sh +@@ -191,8 +191,10 @@ case $ucpu in + mycpu="powerpc64" ;; + *power*|*ppc* ) + if [ "$myos" = "freebsd" ] ; then +- COMP_FLAGS="$COMP_FLAGS -m64" +- LINK_FLAGS="$LINK_FLAGS -m64" ++ if [ "$ucpu" != "powerpc" ] ; then ++ COMP_FLAGS="$COMP_FLAGS -m64" ++ LINK_FLAGS="$LINK_FLAGS -m64" ++ fi + mycpu=`uname -p` + case $mycpu in + powerpc64le)