@@ -27,6 +27,7 @@ version: 3.14.1
27
27
#if OpenBSD? [ defines: TO_OPENBSD ]
28
28
#if FreeBSD? [ defines: TO_FREEBSD ]
29
29
#if (system/platform = 'NetBSD) [ defines: TO_NETBSD ]
30
+ #if (system/platform = 'Turris) [ defines: TO_LINUX ]
30
31
31
32
#if Posix? [ clfag: -Wno-pointer-sign ] ;@@ Review these warnings and fix them!
32
33
@@ -85,6 +86,13 @@ target-haiku: [
85
86
library: [%network %iconv]
86
87
defines: [ENDIAN_LITTLE USE_OLD_PIPE]
87
88
]
89
+ target-turris: [
90
+ os: turris
91
+ sys: linux
92
+ platform: Turris
93
+ vendor: pc
94
+ compiler: gcc
95
+ ]
88
96
89
97
#if Linux? [
90
98
cross-haiku-x86: [
@@ -462,7 +470,7 @@ include-image-codecs: [
462
470
#if MacOS? [
463
471
:include-image-os-codec
464
472
]
465
- #if (find [Linux OpenBSD FreeBSD NetBSD] system/platform) [
473
+ #if (find [Linux OpenBSD FreeBSD NetBSD Turris ] system/platform) [
466
474
:include-native-bmp-codec
467
475
:include-native-png-codec
468
476
:include-native-jpg-codec
@@ -1017,7 +1025,7 @@ common: [
1017
1025
flag: -mmacosx-version-min=10.9
1018
1026
entitlements: %make/Entitlements.plist
1019
1027
]
1020
- #if (find [Linux OpenBSD FreeBSD NetBSD] system/platform) [
1028
+ #if (find [Linux OpenBSD FreeBSD NetBSD Turris ] system/platform) [
1021
1029
library: %m
1022
1030
defines: ENDIAN_LITTLE
1023
1031
]
@@ -1032,20 +1040,18 @@ common-host: [
1032
1040
resource: %make/r3.rc
1033
1041
]
1034
1042
;#if Posix []
1035
- #if (find [Linux OpenBSD FreeBSD NetBSD Haiku] system/platform) [
1043
+ #if (find [Linux OpenBSD FreeBSD NetBSD Haiku Turris ] system/platform) [
1036
1044
flag: -fPIC ; position independent (used for libs)
1037
1045
]
1038
1046
]
1039
1047
1040
1048
common-64bit: [
1041
1049
define: _FILE_OFFSET_BITS=64
1042
1050
1043
- #if Windows? [
1051
+ #either Windows? [
1044
1052
defines: _WIN32
1045
1053
defines: __LLP64__ ; 64-bit, long (integer) has 32 bits and 'void *' is sizeof(long long)
1046
- ]
1047
-
1048
- #if (find [Linux OpenBSD FreeBSD macOS Haiku] system/platform) [
1054
+ ][
1049
1055
;has long (integer) 64 bits
1050
1056
defines: __LP64__ ; same like LLP64, but long (integer) has 64 bits instead of 32
1051
1057
]
@@ -1188,6 +1194,10 @@ make-ext-test: [
1188
1194
flag: -fPIC
1189
1195
:target-netbsd
1190
1196
]
1197
+ #if ('Turris = system/platform) [
1198
+ flag: -fPIC
1199
+ :target-turris
1200
+ ]
1191
1201
]
1192
1202
1193
1203
eggs: [
@@ -1715,6 +1725,25 @@ eggs: [
1715
1725
:make-x64-exe
1716
1726
]
1717
1727
]
1728
+ #if (system/platform = 'turris) [
1729
+ "Rebol/Base turris-armv7" [
1730
+ name: %rebol3-base-turris-armv7
1731
+ :target-turris
1732
+ :make-armv7-exe
1733
+ ]
1734
+ "Rebol/Core turris-armv7" [
1735
+ name: %rebol3-core-turris-armv7
1736
+ :target-turris
1737
+ :include-rebol-core
1738
+ :make-armv7-exe
1739
+ ]
1740
+ "Rebol/Bulk turris-armv7" [
1741
+ name: %rebol3-bulk-turris-armv7
1742
+ :target-turris
1743
+ :include-rebol-bulk
1744
+ :make-armv7-exe
1745
+ ]
1746
+ ]
1718
1747
"Test extension 32bit" [
1719
1748
name: %test-x86.rebx
1720
1749
:arch-x86
0 commit comments