[oe-commits] [meta-openembedded] 31/47: mozjs: disable null pointer optimization with GCC >= 6

git at git.openembedded.org git at git.openembedded.org
Sun Aug 19 23:11:43 UTC 2018


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

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

commit b8330672336994336526bfc8ac118b30eaaacd73
Author: Ricardo Salveti <ricardo at foundries.io>
AuthorDate: Thu Aug 16 20:11:07 2018 -0300

    mozjs: disable null pointer optimization with GCC >= 6
    
    Mozjs fails to start on several architectures due broken build
    optimizations when built with GCC >= 6.
    
    Set -fno-tree-vrp -fno-strict-aliasing -fno-delete-null-pointer-checks
    to both CFLAGS and CXXFLAGS as workaround (flags also used by Firefox
    and Fedora).
    
    Signed-off-by: Ricardo Salveti <ricardo at foundries.io>
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 meta-oe/recipes-extended/mozjs/mozjs_52.8.1.bb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta-oe/recipes-extended/mozjs/mozjs_52.8.1.bb b/meta-oe/recipes-extended/mozjs/mozjs_52.8.1.bb
index fe9698f..626522e 100644
--- a/meta-oe/recipes-extended/mozjs/mozjs_52.8.1.bb
+++ b/meta-oe/recipes-extended/mozjs/mozjs_52.8.1.bb
@@ -32,6 +32,11 @@ CONFLICT_DISTRO_FEATURES_mipsarchn32 = "ld-is-gold"
 
 DEPENDS += "nspr zlib"
 
+# Disable null pointer optimization in gcc >= 6
+# https://bugzilla.redhat.com/show_bug.cgi?id=1328045
+CFLAGS += "-fno-tree-vrp -fno-strict-aliasing -fno-delete-null-pointer-checks"
+CXXFLAGS += "-fno-tree-vrp -fno-strict-aliasing -fno-delete-null-pointer-checks"
+
 # nspr's package-config is ignored so set libs manually
 EXTRA_OECONF = " \
     --target=${TARGET_SYS} \

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


More information about the Openembedded-commits mailing list