Skip to content

Commit 690f5da

Browse files
committed
depends: Specify Objective C/C++ compilers for native_qt package
This change fixes cross-compilation from macOS to macOS with another architecture.
1 parent c66f7da commit 690f5da

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

depends/packages/native_qt.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ $(package)_config_opts += -no-feature-qtplugininfo
8888

8989
$(package)_config_env := CC="$$(build_CC)"
9090
$(package)_config_env += CXX="$$(build_CXX)"
91+
ifeq ($(build_os),darwin)
92+
$(package)_config_env += OBJC="$$(build_CC)"
93+
$(package)_config_env += OBJCXX="$$(build_CXX)"
94+
endif
9195

9296
$(package)_cmake_opts := -DCMAKE_EXE_LINKER_FLAGS="$$(build_LDFLAGS)"
9397
ifneq ($(V),)

0 commit comments

Comments
 (0)