You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ro...@apache.org on 2024/06/05 21:05:47 UTC
(couchdb-jiffy) 01/01: Library ei is detected by the port compiler
This is an automated email from the ASF dual-hosted git repository.
ronny pushed a commit to branch fix-erl-interface-libs
in repository https://gitbox.apache.org/repos/asf/couchdb-jiffy.git
commit 00e34b7b7c301fc3b6062bac4a185e75dbd08d24
Author: Ronny Berndt <ro...@apache.org>
AuthorDate: Wed Jun 5 23:04:01 2024 +0200
Library ei is detected by the port compiler
After merging https://github.com/apache/couchdb-rebar/pull/10,
there is no need of these explicit settings.
---
rebar.config | 4 ----
rebar.config.script | 5 ++++-
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/rebar.config b/rebar.config
index 0ee14f4..4a2a240 100644
--- a/rebar.config
+++ b/rebar.config
@@ -7,10 +7,6 @@
]}.
{port_env, [
- % Drop -lerl_interface
- {"ERL_LDFLAGS", " -L$ERL_EI_LIBDIR -lei"},
- {"win32", "ERL_LDFLAGS", " /LIBPATH:$ERL_EI_LIBDIR ei.lib"},
-
{".*", "FLTO_FLAG", ""},
{"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)",
diff --git a/rebar.config.script b/rebar.config.script
index 007e9b3..525335f 100644
--- a/rebar.config.script
+++ b/rebar.config.script
@@ -54,7 +54,10 @@ case IsRebar2 of
false ->
Config2 ++ [
{plugins, [{pc, "~> 1.0"}]},
- {artifacts, ["priv/jiffy.so"]},
+ case os:type() of
+ {win32, _} -> {artifacts, ["priv/jiffy.dll"]};
+ {_, _} -> {artifacts, ["priv/jiffy.so"]}
+ end,
{provider_hooks, [
{post, [
{compile, {pc, compile}},