@@ -32,28 +32,17 @@ define $(package)_extract_cmds
3232 tar --strip-components=1 -xf $($(package)_source)
3333endef
3434
35- # ====================================================================
36- # FINAL FIX — CORRECT OVERRIDE LOCATION
37- # macOS cross-compile uses GCC/G++, not LLVM 3.7.1 (broken)
38- # ====================================================================
3935define $(package)_set_vars
4036$(package ) _config_opts=--target=$(host ) --disable-lto-support
4137$(package ) _ldflags+=-Wl,-rpath=\\$$$$$$$$\$$$$$$$$ORIGIN/../lib
4238
43- # ----------------------------
44- # Default (Linux / Windows)
45- # ----------------------------
4639$(package ) _cc=$($(package ) _extract_dir) /toolchain/bin/clang
4740$(package ) _cxx=$($(package ) _extract_dir) /toolchain/bin/clang++
4841
49- # ----------------------------
50- # macOS cross-compile override
51- # ----------------------------
5242ifeq ($(host_os ) ,darwin)
5343 $(package)_cc =gcc
5444 $(package)_cxx =g++
5545
56- # Silence warnings that break the configure step
5746 $(package)_cflags+ =-Wno-unused-command-line-argument
5847 $(package)_cxxflags+ =-Wno-unused-command-line-argument
5948 $(package)_ldflags+ =-Wno-unused-command-line-argument
6453define $(package)_preprocess_cmds
6554 cd $($(package ) _build_subdir) ; ./autogen.sh && \
6655 sed -i.old "/define HAVE_PTHREADS/d" ld64/src/ld/InputFiles.h && \
67- \
68- # ## 🔥 REMOVE libobjc2 SO IT NEVER BUILDS (fixes cc1obj missing) ###
6956 sed -i.old2 's/ libobjc2//g' Makefile.am && \
7057 sed -i.old3 's/ libobjc2//g' Makefile.in
7158endef
0 commit comments