This is an automated email from the ASF dual-hosted git repository.

jan pushed a commit to branch fix/sm60
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit ee68ec2f4ec2e4dd8b03fece20390a33bafa0b5b
Author: Jan Lehnardt <[email protected]>
AuthorDate: Mon Jan 6 12:22:39 2020 +0100

    fix: build against sm60 on mac needs extra compiler flags
---
 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 2672578..b875fbc 100644
--- a/src/couch/rebar.config.script
+++ b/src/couch/rebar.config.script
@@ -108,6 +108,11 @@ end,
             "/DXP_WIN /IC:\\relax\\js-60\\js\\src",
             "/LIBPATH:C:\\relax\\js-60\\js\\src mozjs-60.lib"
         };
+    {unix, darwin} when SMVsn == "60" ->
+        {
+            "-DXP_UNIX -I/usr/include/mozjs-60 -I/usr/local/include/mozjs-60 
-std=c++14 -lc++",
+            "-L/usr/local/lib -lmozjs-60 -lm -std=c++14 -lc++"
+        };
     {unix, _} when SMVsn == "60" ->
         {
             "-DXP_UNIX -I/usr/include/mozjs-60 -I/usr/local/include/mozjs-60 
-std=c++14",

Reply via email to