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

rnewson pushed a commit to branch decouple_offline_hash_strength_from_online
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit d88abc2bcb16c6ca4a3e40b723e66a1bf658706a
Author: Robert Newson <rnew...@apache.org>
AuthorDate: Thu Nov 9 18:49:07 2023 +0000

    try to fix mac silicon and Windows Build
    
    incorporating https://github.com/esl/fast_pbkdf2/pull/4 for now
---
 src/fast_pbkdf2/rebar.config | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/fast_pbkdf2/rebar.config b/src/fast_pbkdf2/rebar.config
index a0ef529ca..7b909f82b 100644
--- a/src/fast_pbkdf2/rebar.config
+++ b/src/fast_pbkdf2/rebar.config
@@ -39,8 +39,10 @@
         % From files
         ["c_src/*.c"],
         % Using options
-        [ {env, [{"CFLAGS", "$CFLAGS -std=c99 -O3 -g -Wall -Wextra -fPIC"},
-                 {"LDLIBS", "$LDLIBS -lcrypto"},
+        [ {env, [{"(linux|solaris|darwin|freebsd)", "CFLAGS", "$CFLAGS 
-std=c99 -O3 -g -Wall -Wextra -fPIC"},
+                 {"win32", "CFLAGS", "$CFLAGS /O2 /DNDEBUG /Wall"},
+                 {"(linux|solaris|darwin|freebsd)", "LDLIBS", "$LDLIBS 
-lcrypto -L /opt/homebrew/lib/"},
+                 {"win32", "LDLIBS", "$LDLIBS libcrypto.lib"},
                  {"DRV_LINK_TEMPLATE", "$DRV_LINK_TEMPLATE $LDLIBS"}]}]
      }
  ]}.

Reply via email to