You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ji...@apache.org on 2020/08/05 07:38:36 UTC
[couchdb] 01/01: fixup: Build couch_js for redhat linux
This is an automated email from the ASF dual-hosted git repository.
jiangphcn pushed a commit to branch build-fdb-couchjs-for-redhat-linux
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 29164628d924fb80b32875fee1c6937acfe4119e
Author: jiangph <ji...@cn.ibm.com>
AuthorDate: Wed Aug 5 15:37:45 2020 +0800
fixup: Build couch_js for redhat linux
When building couch_js in RHEL, there is one error occurring with "undefined
reference to symbol '_ZTVN10__cxxabiv117__class_type_infoE@@CXXABI_1.3'".
This commit is to adjust binding library to address this issue.
---
src/couch/rebar.config.script | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/couch/rebar.config.script b/src/couch/rebar.config.script
index 80e6bd1..667bb87 100644
--- a/src/couch/rebar.config.script
+++ b/src/couch/rebar.config.script
@@ -118,6 +118,11 @@ end,
"-DXP_UNIX -I/usr/include/mozjs-60 -I/usr/local/include/mozjs-60 -std=c++14",
"-L/usr/local/lib -lmozjs-60 -lm -std=c++14 -lc++"
};
+ {unix, linux} when SMVsn == "60" ->
+ {
+ "-DXP_UNIX -I/usr/include/mozjs-60 -I/usr/local/include/mozjs-60 -std=c++14",
+ "-L/usr/local/lib -lstdc++ -lmozjs-60 -lm"
+ };
{unix, _} when SMVsn == "60" ->
{
"-DXP_UNIX -I/usr/include/mozjs-60 -I/usr/local/include/mozjs-60 -std=c++14",