depends: Manually apply build_env to second half of googletest build
The build environment is applied to the entire configured build_cmds section, but it doesn't carry over past the && between the gmock and gtest builds. This causes problems when cross-compiling for darwin, as the correctly-configured clang++ is provided in the build environment.
This commit is contained in:
parent
a89c1058bc
commit
97098c45cb
|
@ -13,7 +13,7 @@ endef
|
|||
|
||||
define $(package)_build_cmds
|
||||
$(MAKE) -C googlemock/make CC="$($(package)_cc)" CXX="$($(package)_cxx)" AR="$($(package)_ar)" CXXFLAGS="$($(package)_cxxflags)" gmock.a && \
|
||||
$(MAKE) -C googletest/make CC="$($(package)_cc)" CXX="$($(package)_cxx)" AR="$($(package)_ar)" CXXFLAGS="$($(package)_cxxflags)" gtest.a
|
||||
$($(package)_build_env) $(MAKE) -C googletest/make CC="$($(package)_cc)" CXX="$($(package)_cxx)" AR="$($(package)_ar)" CXXFLAGS="$($(package)_cxxflags)" gtest.a
|
||||
endef
|
||||
|
||||
define $(package)_stage_cmds
|
||||
|
|
Loading…
Reference in New Issue