summaryrefslogtreecommitdiff
path: root/lang/nim/files/patch-build.sh
blob: aa7b1edb993084b01ccba93a4571ee2095e2d82b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)