Skip to content

Commit

Permalink
lang/nim: fix build on powerpc
Browse files Browse the repository at this point in the history
build.sh was misdetecting powerpc for powerpc64.
  • Loading branch information
pkubaj committed Nov 7, 2021
1 parent 123f5e1 commit c62f15a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions 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)

0 comments on commit c62f15a

Please sign in to comment.