mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-13 17:39:57 +00:00
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>
This commit is contained in:
@@ -91,6 +91,9 @@ export HOST_CXXFLAGS = "${BUILD_CXXFLAGS}"
|
||||
# otherwise we are asked for yasm...
|
||||
export AS = "${CC}"
|
||||
|
||||
CPPFLAGS:append:mips:toolchain-clang = " -fpie"
|
||||
CPPFLAGS:append:mipsel:toolchain-clang = " -fpie"
|
||||
|
||||
do_configure() {
|
||||
prepare_python_and_rust
|
||||
|
||||
@@ -102,7 +105,7 @@ do_configure() {
|
||||
# * with mozjs-78 we get without:
|
||||
# | 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
|
||||
mkdir -p "${B}/lcl_tmp"
|
||||
TMPDIR="${B}/lcl_tmp" ${S}/js/src/configure ${EXTRA_OECONF}
|
||||
TMPDIR="${B}/lcl_tmp" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" ${S}/js/src/configure ${EXTRA_OECONF}
|
||||
|
||||
# inspired by what fedora [1] does: for big endian rebuild icu dat
|
||||
# this avoids gjs qemu crash on mips at gir creation
|
||||
|
||||
Reference in New Issue
Block a user