From d84b4b0bab9823c81f0ea38ca12eb8bccf892ca4 Mon Sep 17 00:00:00 2001 From: "Adam C. Foltzer" Date: Thu, 8 Jun 2017 10:34:14 -0700 Subject: meson: add LDFLAGS to bbclass C/C++ link arguments This adds compiler flags for C++ projects, and fixes the linker arguments for both C and C++ to avoid the GNU_HASH qa failure Signed-off-by: Adam C. Foltzer Signed-off-by: Martin Jansa --- meta-oe/classes/meson.bbclass | 11 ++++++----- meta-oe/recipes-devtools/meson/meson_0.40.1.bb | 1 - 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'meta-oe') diff --git a/meta-oe/classes/meson.bbclass b/meta-oe/classes/meson.bbclass index d2ae626ebe..2c48a7eb9c 100644 --- a/meta-oe/classes/meson.bbclass +++ b/meta-oe/classes/meson.bbclass @@ -32,7 +32,8 @@ MESONOPTS = " --prefix ${prefix} \ --localstatedir ${localstatedir} \ --sharedstatedir ${sharedstatedir}" -MESON_C_ARGS = "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" +MESON_C_ARGS = "${TARGET_CC_ARCH}${TOOLCHAIN_OPTIONS}" +MESON_LINK_ARGS = "${MESON_C_ARGS} ${LDFLAGS}" MESON_HOST_ENDIAN = "${@bb.utils.contains('SITEINFO_ENDIANNESS', 'be', 'big', 'little', d)}" MESON_TARGET_ENDIAN = "${@bb.utils.contains('TUNE_FEATURES', 'bigendian', 'big', 'little', d)}" @@ -61,9 +62,9 @@ pkgconfig = 'pkg-config' [properties] c_args = [${@meson_array('MESON_C_ARGS', d)}] -cpp_args = [${@meson_array('TOOLCHAIN_OPTIONS', d)}] -c_link_args = [${@meson_array('TOOLCHAIN_OPTIONS', d)}] -cpp_link_args = [${@meson_array('TOOLCHAIN_OPTIONS', d)}] +c_link_args = [${@meson_array('MESON_LINK_ARGS', d)}] +cpp_args = [${@meson_array('MESON_C_ARGS', d)}] +cpp_link_args = [${@meson_array('MESON_LINK_ARGS', d)}] [host_machine] system = '${BUILD_OS}' @@ -74,7 +75,7 @@ endian = '${MESON_HOST_ENDIAN}' [target_machine] system = '${TARGET_OS}' cpu_family = '${TARGET_ARCH}' -cpu = '${TARGET_ARCH}' +cpu = '${TUNE_PKGARCH}' endian = '${MESON_TARGET_ENDIAN}' EOF } diff --git a/meta-oe/recipes-devtools/meson/meson_0.40.1.bb b/meta-oe/recipes-devtools/meson/meson_0.40.1.bb index fd96b4238e..a2c5e4d397 100644 --- a/meta-oe/recipes-devtools/meson/meson_0.40.1.bb +++ b/meta-oe/recipes-devtools/meson/meson_0.40.1.bb @@ -6,7 +6,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=3b83ef96387f14655fc854ddc3c6bd57" SRC_URI = " \ git://github.com/mesonbuild/meson.git \ - file://native_bindir.patch \ " SRCREV = "b25d3e4d3f2b4d37029a507cc089bdde643c6240" -- cgit 1.2.3-korg