1
- OSX_MIN_VERSION =10.15
1
+ OSX_MIN_VERSION =11.0
2
2
OSX_SDK_VERSION =11.0
3
3
XCODE_VERSION =12.2
4
4
XCODE_BUILD_ID =12B45b
5
- LD64_VERSION =609
5
+ LD64_VERSION =711
6
6
7
7
OSX_SDK =$(host_prefix ) /native/SDK
8
8
9
- darwin_native_toolchain =darwin_sdk native_cctools
9
+ darwin_native_toolchain =darwin_sdk
10
10
11
- clang_prog =$(shell $(SHELL ) $(.SHELLFLAGS ) "command -v clang")
12
- clangxx_prog =$(shell $(SHELL ) $(.SHELLFLAGS ) "command -v clang++")
11
+ clang_prog =clang
12
+ clangxx_prog =clang++
13
+
14
+ darwin_AR =llvm-ar
15
+ darwin_DSYMUTIL =dsymutil
16
+ darwin_NM =llvm-nm
17
+ darwin_OBJDUMP =llvm-objdump
18
+ darwin_RANLIB =llvm-ranlib
19
+ darwin_STRIP =llvm-strip
13
20
14
21
# Flag explanations:
15
22
#
@@ -18,11 +25,6 @@ clangxx_prog=$(shell $(SHELL) $(.SHELLFLAGS) "command -v clang++")
18
25
# Ensures that modern linker features are enabled. See here for more
19
26
# details: https://github.com/bitcoin/bitcoin/pull/19407.
20
27
#
21
- # -B$(build_prefix)/bin
22
- #
23
- # Explicitly point to our binaries (e.g. cctools) so that they are
24
- # ensured to be found and preferred over other possibilities.
25
- #
26
28
# -isysroot$(OSX_SDK) -nostdlibinc
27
29
#
28
30
# Disable default include paths built into the compiler as well as
@@ -38,22 +40,22 @@ darwin_CC=env -u C_INCLUDE_PATH -u CPLUS_INCLUDE_PATH \
38
40
-u OBJC_INCLUDE_PATH -u OBJCPLUS_INCLUDE_PATH -u CPATH \
39
41
-u LIBRARY_PATH \
40
42
$(clang_prog ) --target=$(host ) -mmacosx-version-min=$(OSX_MIN_VERSION ) \
41
- -B$(build_prefix ) /bin -mlinker-version=$(LD64_VERSION ) \
42
- -isysroot$(OSX_SDK ) \
43
+ -mlinker-version=$(LD64_VERSION ) \
43
44
-isysroot$(OSX_SDK ) -nostdlibinc \
44
45
-iwithsysroot/usr/include -iframeworkwithsysroot/System/Library/Frameworks
45
46
46
47
darwin_CXX =env -u C_INCLUDE_PATH -u CPLUS_INCLUDE_PATH \
47
48
-u OBJC_INCLUDE_PATH -u OBJCPLUS_INCLUDE_PATH -u CPATH \
48
49
-u LIBRARY_PATH \
49
50
$(clangxx_prog ) --target=$(host ) -mmacosx-version-min=$(OSX_MIN_VERSION ) \
50
- -B $( build_prefix ) /bin - mlinker-version=$(LD64_VERSION ) \
51
+ -mlinker-version=$(LD64_VERSION ) \
51
52
-isysroot$(OSX_SDK ) -nostdlibinc \
52
53
-iwithsysroot/usr/include/c++/v1 \
53
54
-iwithsysroot/usr/include -iframeworkwithsysroot/System/Library/Frameworks
54
55
55
56
darwin_CFLAGS =-pipe
56
57
darwin_CXXFLAGS =$(darwin_CFLAGS )
58
+ darwin_LDFLAGS =-Wl,-platform_version,macos,$(OSX_MIN_VERSION ) ,$(OSX_SDK_VERSION ) -Wl,-no_adhoc_codesign -fuse-ld=lld
57
59
darwin_ARFLAGS =cr
58
60
59
61
darwin_release_CFLAGS =-O2
0 commit comments