[oe-commits] [meta-openembedded] 41/79: spice: append to CFLAGS instead of +=

git at git.openembedded.org git at git.openembedded.org
Fri Jun 14 18:45:41 UTC 2019


This is an automated email from the git hooks/post-receive script.

khem pushed a commit to branch master-next
in repository meta-openembedded.

commit f7e24dc0caa61d2e51ca7bfc08ca704115b35ff0
Author: Martin Jansa <martin.jansa at gmail.com>
AuthorDate: Wed Jun 5 07:52:41 2019 +0000

    spice: append to CFLAGS instead of +=
    
    * so that -Wno-address-of-packed-member is used for all the builds not
      only for target builds
    * with native it was overwritten with BUILD_CFLAGS and for nativesdk with
      BUILDSDK_CFLAGS
    * this issue isn't specific for gcc-9 as the original commit said, I see
      nativesdk-spice failing on older hosts with gcc-7 with the same issue
    * also use -Wno-error=address-of-packed-member instead of
      -Wno-address-of-packed-member so that there is still a warning, just
      not fatal for the build in combination with -Werror.
    
    Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 meta-networking/recipes-support/spice/spice_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-networking/recipes-support/spice/spice_git.bb b/meta-networking/recipes-support/spice/spice_git.bb
index 3c45d1f..552f81d 100644
--- a/meta-networking/recipes-support/spice/spice_git.bb
+++ b/meta-networking/recipes-support/spice/spice_git.bb
@@ -37,7 +37,7 @@ DEPENDS_append_class-nativesdk = "nativesdk-openssl"
 export PYTHON="${STAGING_BINDIR_NATIVE}/python-native/python"
 export PYTHONPATH="${PKG_CONFIG_SYSROOT_DIR}${libdir}/python2.7/site-packages"
 
-CFLAGS += "-Wno-address-of-packed-member"
+CFLAGS_append = " -Wno-error=address-of-packed-member"
 
 PACKAGECONFIG_class-native = ""
 PACKAGECONFIG_class-nativesdk = ""

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list