Skip to content

Commit 4486562

Browse files
committed
Build: including macOS entitlements and support for building shared Rebol library
1 parent 9a63e88 commit 4486562

File tree

2 files changed

+58
-2
lines changed

2 files changed

+58
-2
lines changed

make/Entitlements.plist

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
2+
<plist version="1.0">
3+
<dict>
4+
<key>com.apple.security.cs.disable-library-validation</key>
5+
<true/>
6+
</dict>
7+
</plist>

make/rebol3.nest

+51-2
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,8 @@ common: [
873873
defines: ENDIAN_LITTLE
874874
defines: USE_OLD_PIPE
875875
cflags: -Wno-pointer-sign
876-
flag: -mmacosx-version-min=10.9
876+
flag: -mmacosx-version-min=10.9
877+
entitlements: %make/Entitlements.plist
877878
]
878879
#if (any [Linux? OpenBSD? FreeBSD?]) [
879880
library: %m
@@ -998,7 +999,7 @@ make-dll: [
998999
flags: [-O2 shared]
9991000
upx: off
10001001
#if Posix? [ flag: fPIC upx: off ]
1001-
#if macOS? [ flag: fno-common strip: off]
1002+
#if macOS? [ flag: fno-common strip: off lflag: "compatibility_version 3.0"]
10021003
do %make/pre-make.r3 "$NEST_SPEC"
10031004
]
10041005
; for testing host app using shared library
@@ -1014,6 +1015,9 @@ make-x64-dll: [:arch-x64 :make-dll ]
10141015
make-x86-host: [:arch-x86 :make-host ]
10151016
make-x64-host: [:arch-x64 :make-host ]
10161017

1018+
make-arm64-dll: [:arch-arm64 :make-dll ]
1019+
make-arm64-host: [:arch-arm64 :make-host ]
1020+
10171021
make-ext-test: [
10181022
files: only %tests/extension/test.c
10191023
flags: [-O2 shared]
@@ -1201,6 +1205,7 @@ eggs: [
12011205

12021206
"Rebol/Core macos-x64 shared library" [
12031207
name: %lib-rebol3-core-macos-x64
1208+
flag: "-Wl,-install_name,'/usr/local/lib/librebol-core.3.dylib'"
12041209
:target-macos
12051210
:include-rebol-core
12061211
:make-x64-dll
@@ -1212,6 +1217,50 @@ eggs: [
12121217
:include-rebol-core
12131218
:make-x64-host
12141219
]
1220+
"Rebol/Bulk macos-x64 shared library" [
1221+
name: %lib-rebol3-bulk-macos-x64
1222+
flag: "-Wl,-install_name,'/usr/local/lib/librebol.3.dylib'"
1223+
:target-macos
1224+
:include-rebol-bulk
1225+
:make-x64-dll
1226+
]
1227+
"Rebol/Bulk macos-x64 host application" [
1228+
name: %host-bulk-macos-x64
1229+
shared: %lib-rebol3-bulk-macos-x64
1230+
:target-macos
1231+
:include-rebol-core
1232+
:make-x64-host
1233+
]
1234+
1235+
"Rebol/Core macos-arm64 shared library" [
1236+
name: %lib-rebol3-core-macos-arm64
1237+
flag: "-Wl,-install_name,'/usr/local/lib/librebol-core.3.dylib'"
1238+
:target-macos
1239+
:include-rebol-core
1240+
:make-arm64-dll
1241+
]
1242+
"Rebol/Core macos-arm64 host application" [
1243+
name: %host-core-macos-arm64
1244+
shared: %lib-rebol3-core-macos-arm64
1245+
:target-macos
1246+
:include-rebol-core
1247+
:make-arm64-host
1248+
]
1249+
1250+
"Rebol/Bulk macos-arm64 shared library" [
1251+
name: %lib-rebol3-bulk-macos-arm64
1252+
lflag: "-Wl,-install_name,'/usr/local/lib/librebol.3.dylib'"
1253+
:target-macos
1254+
:include-rebol-bulk
1255+
:make-arm64-dll
1256+
]
1257+
"Rebol/Bulk macos-arm64 host application" [
1258+
name: %host-bulk-macos-arm64
1259+
shared: %lib-rebol3-bulk-macos-arm64
1260+
:target-macos
1261+
:include-rebol-bulk
1262+
:make-arm64-host
1263+
]
12151264
]
12161265
#if OpenBSD? [
12171266
"Rebol/Base openbsd-x86" [

0 commit comments

Comments
 (0)