We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecaaae3 commit 1c9f326Copy full SHA for 1c9f326
1 file changed
depends/packages/native_cctools.mk
@@ -40,6 +40,18 @@ $(package)_cxx=$($(package)_extract_dir)/toolchain/bin/clang++
40
endef
41
42
define $(package)_preprocess_cmds
43
+ # ============================================================
44
+ # macOS cross-compile: FORCE real GCC instead of LLVM 3.7 clang
45
46
+ if echo "$(host)" | grep -q darwin; then \
47
+ echo "⚡ Overriding compiler for macOS toolchain build..."; \
48
+ export CC=gcc; \
49
+ export CXX=g++; \
50
+ export LD=gcc; \
51
+ export AR=$(build_AR); \
52
+ export RANLIB=$(build_RANLIB); \
53
+ fi
54
+
55
cd $($(package)_build_subdir); ./autogen.sh && \
56
sed -i.old "/define HAVE_PTHREADS/d" ld64/src/ld/InputFiles.h
57
0 commit comments