summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Hilliard <james.hilliard1@gmail.com>2018-12-26 09:52:26 +0100
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-12-28 11:52:37 +0100
commitf112f2b991b47a7309116e132c969e3731a7e911 (patch)
tree0f879d689c88349539106445e80c6d973a865336
parent136c8862cf1644ac24187f60c3b9b3400b4e3fb5 (diff)
downloadbuildroot-f112f2b991b47a7309116e132c969e3731a7e911.tar.gz
buildroot-f112f2b991b47a7309116e132c969e3731a7e911.zip
package/meson: never try to run generated target binaries
As explained in [0], meson will try on its own to decide whether it can run what it builds. If it happens that the host and target CPUs are "compatible", that test may fail and meson may believe it can run what it builds. Override that test by using needs_exe_wrapper=true, and not defining an actual exe_wrapper. [0] https://mesonbuild.com/Cross-compilation.html Signed-off-by: James Hilliard <james.hilliard1@gmail.com> [yann.morin.1998@free.fr: - split in its own patch - improve commit log ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/meson/cross-compilation.conf.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/meson/cross-compilation.conf.in b/package/meson/cross-compilation.conf.in
index 0eec74087b..fc8e27f7eb 100644
--- a/package/meson/cross-compilation.conf.in
+++ b/package/meson/cross-compilation.conf.in
@@ -11,6 +11,7 @@ strip = '@TARGET_CROSS@strip'
pkgconfig = '@HOST_DIR@/usr/bin/pkg-config'
[properties]
+needs_exe_wrapper = true
c_args = [@TARGET_CFLAGS@]
c_link_args = [@TARGET_LDFLAGS@]
cpp_args = [@TARGET_CXXFLAGS@]
OpenPOWER on IntegriCloud