summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-11-01 17:19:51 -0700
committerKhem Raj <raj.khem@gmail.com>2021-11-03 06:57:48 -0700
commitd10abc71d6b4c713e1e78a70773b75b6aa68c86d (patch)
tree108042077c1336cdca0217f6e59f47ab4d29ae08
parenta59370541d5473b8430e591ee0e892ba529e52df (diff)
downloadmeta-openembedded-d10abc71d6b4c713e1e78a70773b75b6aa68c86d.tar.gz
mozjs-78: Pass C/C++ flags to js configure
On mips ensure -fpie is passed when using clang compiler, this fixes configure issues e.g. /mnt/b/yoe/master/build/tmp/work/mips32r2-yoe-linux/mozjs-78/78.15.0-r0/recipe-sysroot-native/usr/bin/mips-yoe-linux/mips-yoe-linux-ld: non-dynamic relocations refer to dynamic symbol localtime_r@@GLIBC_2.0 /mnt/b/yoe/master/build/tmp/work/mips32r2-yoe-linux/mozjs-78/78.15.0-r0/recipe-sysroot-native/usr/bin/mips-yoe-linux/mips-yoe-linux-ld: failed to set dynamic section sizes: bad value Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78_78.15.0.bb5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78_78.15.0.bb b/meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78_78.15.0.bb
index 090c2fe058..61c5861153 100644
--- a/meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78_78.15.0.bb
+++ b/meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs-78_78.15.0.bb
@@ -91,6 +91,9 @@ export HOST_CXXFLAGS = "${BUILD_CXXFLAGS}"
91# otherwise we are asked for yasm... 91# otherwise we are asked for yasm...
92export AS = "${CC}" 92export AS = "${CC}"
93 93
94CPPFLAGS:append:mips:toolchain-clang = " -fpie"
95CPPFLAGS:append:mipsel:toolchain-clang = " -fpie"
96
94do_configure() { 97do_configure() {
95 prepare_python_and_rust 98 prepare_python_and_rust
96 99
@@ -102,7 +105,7 @@ do_configure() {
102 # * with mozjs-78 we get without: 105 # * with mozjs-78 we get without:
103 # | Path specified in LOCAL_INCLUDES (..) resolves to the topsrcdir or topobjdir (<tmpdir>/oe-core-glibc/work/cortexa72-mortsgna-linux/mozjs-78/78.15.0-r0/firefox-78.15.0/js/src), which is not allowed 106 # | Path specified in LOCAL_INCLUDES (..) resolves to the topsrcdir or topobjdir (<tmpdir>/oe-core-glibc/work/cortexa72-mortsgna-linux/mozjs-78/78.15.0-r0/firefox-78.15.0/js/src), which is not allowed
104 mkdir -p "${B}/lcl_tmp" 107 mkdir -p "${B}/lcl_tmp"
105 TMPDIR="${B}/lcl_tmp" ${S}/js/src/configure ${EXTRA_OECONF} 108 TMPDIR="${B}/lcl_tmp" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" ${S}/js/src/configure ${EXTRA_OECONF}
106 109
107 # inspired by what fedora [1] does: for big endian rebuild icu dat 110 # inspired by what fedora [1] does: for big endian rebuild icu dat
108 # this avoids gjs qemu crash on mips at gir creation 111 # this avoids gjs qemu crash on mips at gir creation