diff options
| author | Khem Raj <raj.khem@gmail.com> | 2019-01-29 21:17:23 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2019-01-30 13:34:49 -0800 |
| commit | c4432a5f627de0f941dfcd563716c335352d6b71 (patch) | |
| tree | 75d8a27f713e395379a6a99242e00012dc97f483 | |
| parent | fe08cf35450f9d10e88e48fb91cb99f1a406f3b4 (diff) | |
| download | meta-openembedded-c4432a5f627de0f941dfcd563716c335352d6b71.tar.gz | |
mozjs: Fix symbol visibility with clang/libc++
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-extended/mozjs/mozjs/JS_PUBLIC_API.patch | 37 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/mozjs/mozjs_52.9.1.bb | 1 |
2 files changed, 38 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/mozjs/mozjs/JS_PUBLIC_API.patch b/meta-oe/recipes-extended/mozjs/mozjs/JS_PUBLIC_API.patch new file mode 100644 index 0000000000..6c87ff2a4c --- /dev/null +++ b/meta-oe/recipes-extended/mozjs/mozjs/JS_PUBLIC_API.patch | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | Patch from https://bugzilla.mozilla.org/show_bug.cgi?id=1426865 | ||
| 2 | |||
| 3 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 4 | Upstream-Status: Submitted [https://bugzilla.mozilla.org/show_bug.cgi?id=1426865] | ||
| 5 | --- a/js/public/TypeDecls.h | ||
| 6 | +++ b/js/public/TypeDecls.h | ||
| 7 | @@ -21,22 +21,23 @@ | ||
| 8 | #include <stdint.h> | ||
| 9 | |||
| 10 | #include "js-config.h" | ||
| 11 | +#include "jstypes.h" | ||
| 12 | |||
| 13 | struct JSContext; | ||
| 14 | -class JSFunction; | ||
| 15 | +class JS_PUBLIC_API(JSFunction); | ||
| 16 | class JSObject; | ||
| 17 | -class JSScript; | ||
| 18 | -class JSString; | ||
| 19 | -class JSAddonId; | ||
| 20 | +class JS_PUBLIC_API(JSScript); | ||
| 21 | +class JS_PUBLIC_API(JSString); | ||
| 22 | +class JS_PUBLIC_API(JSAddonId); | ||
| 23 | |||
| 24 | -struct jsid; | ||
| 25 | +struct JS_PUBLIC_API(jsid); | ||
| 26 | |||
| 27 | namespace JS { | ||
| 28 | |||
| 29 | typedef unsigned char Latin1Char; | ||
| 30 | |||
| 31 | -class Symbol; | ||
| 32 | -class Value; | ||
| 33 | +class JS_PUBLIC_API(Symbol); | ||
| 34 | +class JS_PUBLIC_API(Value); | ||
| 35 | template <typename T> class Handle; | ||
| 36 | template <typename T> class MutableHandle; | ||
| 37 | template <typename T> class Rooted; | ||
diff --git a/meta-oe/recipes-extended/mozjs/mozjs_52.9.1.bb b/meta-oe/recipes-extended/mozjs/mozjs_52.9.1.bb index a28ecc57d6..74dd15bfcb 100644 --- a/meta-oe/recipes-extended/mozjs/mozjs_52.9.1.bb +++ b/meta-oe/recipes-extended/mozjs/mozjs_52.9.1.bb | |||
| @@ -15,6 +15,7 @@ SRC_URI = "http://archive.ubuntu.com/ubuntu/pool/main/m/mozjs52/mozjs52_52.9.1.o | |||
| 15 | file://add-riscv-support.patch \ | 15 | file://add-riscv-support.patch \ |
| 16 | file://0001-mozjs-fix-coredump-caused-by-getenv.patch \ | 16 | file://0001-mozjs-fix-coredump-caused-by-getenv.patch \ |
| 17 | file://format-overflow.patch \ | 17 | file://format-overflow.patch \ |
| 18 | file://JS_PUBLIC_API.patch \ | ||
| 18 | " | 19 | " |
| 19 | SRC_URI_append_libc-musl = " \ | 20 | SRC_URI_append_libc-musl = " \ |
| 20 | file://0006-support-musl.patch \ | 21 | file://0006-support-musl.patch \ |
