mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-26 11:13:23 -03:00
7f5ac4520d
Similar to libtool, (llvm-)otool only exists with a version suffix on some systems (Ubuntu), which makes it annoying to use/find. Avoid this, by switching to objdump. Which is a drop-in replacement. This is related to #21778, and the switchover to using vanilla LLVM for macOS.
27 lines
1.2 KiB
Makefile
27 lines
1.2 KiB
Makefile
build_darwin_CC:=$(shell xcrun -f clang) -isysroot$(shell xcrun --show-sdk-path)
|
|
build_darwin_CXX:=$(shell xcrun -f clang++) -isysroot$(shell xcrun --show-sdk-path)
|
|
build_darwin_AR:=$(shell xcrun -f ar)
|
|
build_darwin_RANLIB:=$(shell xcrun -f ranlib)
|
|
build_darwin_STRIP:=$(shell xcrun -f strip)
|
|
build_darwin_OBJDUMP:=$(shell xcrun -f objdump)
|
|
build_darwin_NM:=$(shell xcrun -f nm)
|
|
build_darwin_DSYMUTIL:=$(shell xcrun -f dsymutil)
|
|
build_darwin_SHA256SUM=shasum -a 256
|
|
build_darwin_DOWNLOAD=curl --location --fail --connect-timeout $(DOWNLOAD_CONNECT_TIMEOUT) --retry $(DOWNLOAD_RETRIES) -o
|
|
|
|
#darwin host on darwin builder. overrides darwin host preferences.
|
|
darwin_CC=$(shell xcrun -f clang) -isysroot$(shell xcrun --show-sdk-path)
|
|
darwin_CXX:=$(shell xcrun -f clang++) -stdlib=libc++ -isysroot$(shell xcrun --show-sdk-path)
|
|
darwin_AR:=$(shell xcrun -f ar)
|
|
darwin_RANLIB:=$(shell xcrun -f ranlib)
|
|
darwin_STRIP:=$(shell xcrun -f strip)
|
|
darwin_OBJDUMP:=$(shell xcrun -f objdump)
|
|
darwin_NM:=$(shell xcrun -f nm)
|
|
darwin_DSYMUTIL:=$(shell xcrun -f dsymutil)
|
|
darwin_native_binutils=
|
|
darwin_native_toolchain=
|
|
|
|
x86_64_darwin_CFLAGS += -arch x86_64
|
|
x86_64_darwin_CXXFLAGS += -arch x86_64
|
|
aarch64_darwin_CFLAGS += -arch arm64
|
|
aarch64_darwin_CXXFLAGS += -arch arm64
|