mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
mozjs: Fix symbol visibility with clang/libc++
Signed-off-by: Khem Raj <raj.khem@gmail.com> [fixup for thud context] Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
parent
2ae6aaf9e7
commit
0e8912b572
37
meta-oe/recipes-extended/mozjs/mozjs/JS_PUBLIC_API.patch
Normal file
37
meta-oe/recipes-extended/mozjs/mozjs/JS_PUBLIC_API.patch
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
Patch from https://bugzilla.mozilla.org/show_bug.cgi?id=1426865
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
Upstream-Status: Submitted [https://bugzilla.mozilla.org/show_bug.cgi?id=1426865]
|
||||
--- a/js/public/TypeDecls.h
|
||||
+++ b/js/public/TypeDecls.h
|
||||
@@ -21,22 +21,23 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#include "js-config.h"
|
||||
+#include "jstypes.h"
|
||||
|
||||
struct JSContext;
|
||||
-class JSFunction;
|
||||
+class JS_PUBLIC_API(JSFunction);
|
||||
class JSObject;
|
||||
-class JSScript;
|
||||
-class JSString;
|
||||
-class JSAddonId;
|
||||
+class JS_PUBLIC_API(JSScript);
|
||||
+class JS_PUBLIC_API(JSString);
|
||||
+class JS_PUBLIC_API(JSAddonId);
|
||||
|
||||
-struct jsid;
|
||||
+struct JS_PUBLIC_API(jsid);
|
||||
|
||||
namespace JS {
|
||||
|
||||
typedef unsigned char Latin1Char;
|
||||
|
||||
-class Symbol;
|
||||
-class Value;
|
||||
+class JS_PUBLIC_API(Symbol);
|
||||
+class JS_PUBLIC_API(Value);
|
||||
template <typename T> class Handle;
|
||||
template <typename T> class MutableHandle;
|
||||
template <typename T> class Rooted;
|
||||
|
|
@ -14,6 +14,7 @@ SRC_URI = "http://archive.ubuntu.com/ubuntu/pool/main/m/mozjs52/mozjs52_52.9.1.o
|
|||
file://disable-mozglue-in-stand-alone-builds.patch \
|
||||
file://add-riscv-support.patch \
|
||||
file://0001-mozjs-fix-coredump-caused-by-getenv.patch \
|
||||
file://JS_PUBLIC_API.patch \
|
||||
"
|
||||
SRC_URI_append_libc-musl = " \
|
||||
file://0006-support-musl.patch \
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user