summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjiangph <jiangph@cn.ibm.com>2020-08-05 15:37:45 +0800
committerjiangph <jiangph@cn.ibm.com>2020-08-05 15:37:45 +0800
commit29164628d924fb80b32875fee1c6937acfe4119e (patch)
tree6c7dfa85ae809f0647fa060d2623a419e5326cbe
parente0bcb2a5ebbe23f4c04c9c19dbdbde692bef8fde (diff)
downloadcouchdb-build-fdb-couchjs-for-redhat-linux.tar.gz
fixup: Build couch_js for redhat linuxbuild-fdb-couchjs-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.
-rw-r--r--src/couch/rebar.config.script5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/couch/rebar.config.script b/src/couch/rebar.config.script
index 80e6bd12e..667bb872c 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",