summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--compiler/installer.ini2
-rw-r--r--tools/niminst/buildsh.nimf9
-rw-r--r--tools/niminst/makefile.nimf5
3 files changed, 14 insertions, 2 deletions
diff --git a/compiler/installer.ini b/compiler/installer.ini
index 909ba28db..e1ebbb896 100644
--- a/compiler/installer.ini
+++ b/compiler/installer.ini
@@ -9,7 +9,7 @@ Platforms: """
   linux: i386;ia64;alpha;amd64;powerpc64;arm;sparc;sparc64;m68k;mips;mipsel;mips64;mips64el;powerpc;powerpc64el;arm64;riscv64
   macosx: i386;amd64;powerpc64
   solaris: i386;amd64;sparc;sparc64
-  freebsd: i386;amd64
+  freebsd: i386;amd64;powerpc64
   netbsd: i386;amd64
   openbsd: i386;amd64
   dragonfly: i386;amd64
diff --git a/tools/niminst/buildsh.nimf b/tools/niminst/buildsh.nimf
index 9fa0c8d30..464c54594 100644
--- a/tools/niminst/buildsh.nimf
+++ b/tools/niminst/buildsh.nimf
@@ -154,7 +154,14 @@ case $ucpu in
     fi
     mycpu="powerpc64" ;;
   *power*|*ppc* )
-    mycpu="powerpc" ;;
+    if [ "$myos" = "freebsd" ] ; then
+      COMP_FLAGS="$COMP_FLAGS -m64"
+      LINK_FLAGS="$LINK_FLAGS -m64"
+      mycpu=`uname -p`
+	else
+      mycpu="powerpc"
+    fi
+    ;;
   *ia64*)
     mycpu="ia64" ;;
   *m68k*)
diff --git a/tools/niminst/makefile.nimf b/tools/niminst/makefile.nimf
index 0f2c1920e..ad9d55c03 100644
--- a/tools/niminst/makefile.nimf
+++ b/tools/niminst/makefile.nimf
@@ -120,6 +120,11 @@ ifeq ($(ucpu),ppc64)
 endif
 ifeq ($(ucpu),powerpc)
   mycpu = powerpc
+  ifeq ($(myos),freebsd)
+    mycpu = $(shell sh -c 'uname -p | tr "[:upper:]" "[:lower:]"')
+    CFLAGS += -m64
+    LDFLAGS += -m64
+  endif
 endif
 ifeq ($(ucpu),ppc)
   mycpu = ppc
lt <ddevault@vistarmedia.com> 2018-01-10 11:20:41 -0500 Misc idiomatic fixes' href='/akspecs/aerc/commit/cmd/aerc/main.go?id=a0be5e80256b98237241b2f3d7825484e7a9c964'>a0be5e8 ^
39c93d2 ^

60b351b ^
f406bf5 ^



b60999c ^
f406bf5 ^





b60999c ^

f406bf5 ^
77a0f68 ^


1418e1b ^
60b351b ^
1418e1b ^

661e3ec ^

305446a ^
6394e38 ^
aeb7005
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61