1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

Add simple patch to fix undefined symbol problems when trying to build

gjs with this spidermonkey version.

Approved by:	maintainer
Obtained from:	https://bugzilla.mozilla.org/show_bug.cgi?id=1426865
This commit is contained in:
Koop Mast 2020-01-12 22:34:38 +00:00
parent 0777692f8d
commit 9ee5facacf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=522842
2 changed files with 27 additions and 0 deletions

View File

@ -2,6 +2,7 @@
PORTNAME= spidermonkey
DISTVERSION= 60.9.0
PORTREVISION= 1
CATEGORIES= lang
MASTER_SITES= MOZILLA/firefox/releases/${DISTVERSION}esr/source
PKGNAMESUFFIX= ${SP_VER}

View File

@ -0,0 +1,26 @@
https://bugzilla.mozilla.org/show_bug.cgi?id=1426865
Add "dumb" patch to fix undefined symbols when trying to build gjs against
this spidermonkey version.
This issue was fix in firefox and backported to esr 68.
--- js/public/TypeDecls.h.orig 2019-09-01 13:09:17 UTC
+++ js/public/TypeDecls.h
@@ -20,6 +20,8 @@
#include <stddef.h>
#include <stdint.h>
+#pragma GCC visibility push(default)
+
#include "js-config.h"
typedef uint8_t jsbytecode;
@@ -89,5 +91,7 @@ typedef PersistentRooted<JS::Symbol*> PersistentRooted
typedef PersistentRooted<Value> PersistentRootedValue;
} // namespace JS
+
+#pragma GCC visibility pop
#endif /* js_TypeDecls_h */