Skip to content

Commit 2cdd423

Browse files
Update native_cctools.mk
1 parent b4662e1 commit 2cdd423

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

depends/packages/native_cctools.mk

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,28 +32,17 @@ define $(package)_extract_cmds
3232
tar --strip-components=1 -xf $($(package)_source)
3333
endef
3434

35-
# ====================================================================
36-
# FINAL FIX — CORRECT OVERRIDE LOCATION
37-
# macOS cross-compile uses GCC/G++, not LLVM 3.7.1 (broken)
38-
# ====================================================================
3935
define $(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-
# ----------------------------
5242
ifeq ($(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
@@ -64,8 +53,6 @@ endef
6453
define $(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
7158
endef

0 commit comments

Comments
 (0)