File tree Expand file tree Collapse file tree 5 files changed +9
-10
lines changed Expand file tree Collapse file tree 5 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -1122,7 +1122,7 @@ list(APPEND EXTRA_LIBRARIES ${CMAKE_DL_LIBS})
1122
1122
if (HIDAPI_FOUND OR LibUSB_COMPILE_TEST_PASSED)
1123
1123
if (APPLE )
1124
1124
if (DEPENDS )
1125
- list (APPEND EXTRA_LIBRARIES "-framework Foundation -framework AppKit -framework IOKit" )
1125
+ list (APPEND EXTRA_LIBRARIES "-framework Foundation -framework AppKit -framework IOKit -framework Security " )
1126
1126
else ()
1127
1127
find_library (COREFOUNDATION CoreFoundation)
1128
1128
find_library (APPKIT AppKit)
Original file line number Diff line number Diff line change 1
- OSX_MIN_VERSION =10.8
1
+ OSX_MIN_VERSION =10.13
2
2
LD64_VERSION =609
3
3
ifeq (aarch64, $(host_arch ) )
4
4
CC_target =arm64-apple-$(host_os )
5
5
else
6
6
CC_target =$(host )
7
7
endif
8
- darwin_CC =clang -target $(CC_target ) -mmacosx-version-min=$(OSX_MIN_VERSION ) --sysroot $(host_prefix ) /native/SDK/ -mlinker-version=$(LD64_VERSION ) -B$(host_prefix ) /native/bin/$(host ) -
9
- darwin_CXX =clang++ -target $(CC_target ) -mmacosx-version-min=$(OSX_MIN_VERSION ) --sysroot $(host_prefix ) /native/SDK/ -mlinker-version=$(LD64_VERSION ) -stdlib=libc++ -B$(host_prefix ) /native/bin/$(host ) -
8
+ darwin_CC =clang -target $(CC_target ) -mmacosx-version-min=$(OSX_MIN_VERSION ) --sysroot $(host_prefix ) /native/SDK/ -iwithsysroot/usr/include -iframeworkwithsysroot/System/Library/Frameworks - mlinker-version=$(LD64_VERSION ) -B$(host_prefix ) /native/bin/$(host ) -
9
+ darwin_CXX =clang++ -target $(CC_target ) -mmacosx-version-min=$(OSX_MIN_VERSION ) --sysroot $(host_prefix ) /native/SDK/ -iwithsysroot/usr/include/c++/v1 -iwithsysroot/usr/include -iframeworkwithsysroot/System/Library/Frameworks - mlinker-version=$(LD64_VERSION ) -stdlib=libc++ -B$(host_prefix ) /native/bin/$(host ) -
10
10
11
11
darwin_CFLAGS =-pipe
12
12
darwin_CXXFLAGS =$(darwin_CFLAGS )
Original file line number Diff line number Diff line change 1
1
package =darwin_sdk
2
- $(package)_version =11.1
3
- $(package)_download_path =https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/
4
- $(package)_file_name =MacOSX $( $( package ) _version) .sdk .tar.xz
5
- $(package)_sha256_hash =68797baaacb52f56f713400de306a58a7ca00b05c3dc6d58f0a8283bcac721f8
2
+ $(package)_version =12.2
3
+ $(package)_download_path =https://bitcoincore.org/depends-sources/sdks
4
+ $(package)_file_name =Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers .tar.gz
5
+ $(package)_sha256_hash =df75d30ecafc429e905134333aeae56ac65fac67cb4182622398fd717df77619
6
6
7
7
define $(package)_stage_cmds
8
8
mkdir -p $($(package ) _staging_dir) /$(host_prefix ) /native/SDK &&\
Original file line number Diff line number Diff line change @@ -24,6 +24,5 @@ define $(package)_stage_cmds
24
24
cp lib/libLTO.so $($(package ) _staging_prefix_dir) /lib/ && \
25
25
cp -rf lib/clang/$($(package ) _version) /include/* $($(package ) _staging_prefix_dir) /lib/clang/$($(package ) _version) /include/ && \
26
26
cp bin/dsymutil $($(package ) _staging_prefix_dir) /bin/$(host ) -dsymutil && \
27
- if `test -d include/c++/`; then cp -rf include/c++/ $($(package ) _staging_prefix_dir) /include/; fi && \
28
27
if `test -d lib/c++/`; then cp -rf lib/c++/ $($(package ) _staging_prefix_dir) /lib/; fi
29
28
endef
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
94
94
SET (BREW OFF )
95
95
SET (PORT OFF )
96
96
SET (CMAKE_OSX_SYSROOT "@prefix@/native/SDK/" )
97
- SET (CMAKE_OSX_DEPLOYMENT_TARGET "10.08 " )
97
+ SET (CMAKE_OSX_DEPLOYMENT_TARGET "10.13 " )
98
98
SET (CMAKE_CXX_STANDARD 14)
99
99
SET (LLVM_ENABLE_PIC OFF )
100
100
SET (LLVM_ENABLE_PIE OFF )
You can’t perform that action at this time.
0 commit comments