File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,16 +67,15 @@ define $(package)_stage_cmds
6767endef
6868
6969# ============================================================
70- # macOS toolchain build: override compiler for *this* package
71- # Only hits HOST = x86_64-apple-darwin11, leaves Linux/Win alone
70+ # macOS toolchain build: override compiler for *native_cctools*
7271# ============================================================
73- ifeq ($(host_os ) ,darwin)
72+ ifeq ($(findstring darwin, $( host_os ) ) ,darwin)
7473
75- # Use system GCC/G++ on the Linux runner to build cctools itself
74+ # Force system compilers (fixes: C compiler cannot create executables)
7675$(package)_cc =gcc
7776$(package)_cxx =g++
7877
79- # (Optional) keep warning noise down
78+ # Silence problematic unused flag errors during linking
8079$(package)_cflags+ = -Wno-unused-command-line-argument
8180$(package)_cxxflags+ = -Wno-unused-command-line-argument
8281$(package)_ldflags+ = -Wno-unused-command-line-argument
You can’t perform that action at this time.
0 commit comments