Skip to content

Commit ecaaae3

Browse files
Update native_cctools.mk
1 parent a04c842 commit ecaaae3

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

depends/packages/native_cctools.mk

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,15 @@ define $(package)_stage_cmds
6767
endef
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

0 commit comments

Comments
 (0)