mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-09 17:03:35 -09:00
package/pkg-meson.mk: fix setting host C++ compiler
Commitf4a61d1ae2introduced CC_FOR_BUILD and CXX_FOR_BUILD to avoid detecting ccache. Both values are set to `HOSTCC`. This causes issues where C++ files are compiled with the C compiler without passing the `stdc++` flag to the linker, too. Therefore, switch to pass the C++ compiler to CXX_FOR_BUILD. Correctly fixes: http://autobuild.buildroot.org/results/871e1362c44e5b68a149e6a5dd3caf99ea0d904a Commit9783c04aafproposed a fix which in fact is a workaround to get Meson to pass the `stdc++` flag to the C linker. A follow-up commit will revert this commit, as it is no longer needed. Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit00d41f58eb) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
0be0cebb18
commit
c6cae5f092
@@ -83,7 +83,7 @@ define $(2)_CONFIGURE_CMDS
|
||||
> $$($$(PKG)_SRCDIR)/build/cross-compilation.conf
|
||||
PATH=$$(BR_PATH) \
|
||||
CC_FOR_BUILD="$$(HOSTCC)" \
|
||||
CXX_FOR_BUILD="$$(HOSTCC)" \
|
||||
CXX_FOR_BUILD="$$(HOSTCXX)" \
|
||||
$$($$(PKG)_CONF_ENV) \
|
||||
$$(MESON) \
|
||||
--prefix=/usr \
|
||||
|
||||
Reference in New Issue
Block a user