aboutsummaryrefslogtreecommitdiffstats
path: root/core/deps.mk
diff options
context:
space:
mode:
authorBrujo Benavides <[email protected]>2015-11-28 13:50:57 -0300
committerLoïc Hoguin <[email protected]>2015-12-14 12:50:09 +0100
commit0f11e62b647c735bb13f957eeec9586be7e7b51a (patch)
treeae6198bc4221f7a5dea2a26807b70d3e95b827e1 /core/deps.mk
parent313e49fe1207a54f9d65a1bad7a1b0f5cf691488 (diff)
downloaderlang.mk-0f11e62b647c735bb13f957eeec9586be7e7b51a.tar.gz
erlang.mk-0f11e62b647c735bb13f957eeec9586be7e7b51a.tar.bz2
erlang.mk-0f11e62b647c735bb13f957eeec9586be7e7b51a.zip
Fix for bcrypt compilation on OSX El Capitan
Diffstat (limited to 'core/deps.mk')
-rw-r--r--core/deps.mk7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/deps.mk b/core/deps.mk
index 34c4d7b..166b4de 100644
--- a/core/deps.mk
+++ b/core/deps.mk
@@ -412,9 +412,10 @@ define dep_autopatch_rebar.erl
Output, ": $$\(foreach ext,.c .C .cc .cpp,",
"$$\(patsubst %$$\(ext),%.o,$$\(filter %$$\(ext),$$\(wildcard", Input, "))))\n",
"\t$$\(CC) -o $$\@ $$\? $$\(LDFLAGS) $$\(ERL_LDFLAGS) $$\(DRV_LDFLAGS) $$\(EXE_LDFLAGS)",
- case filename:extension(Output) of
- [] -> "\n";
- _ -> " -shared\n"
+ case {filename:extension(Output), $(PLATFORM)} of
+ {[], _} -> "\n";
+ {_, darwin} -> "\n";
+ _ -> " -shared\n"
end])
end,
[PortSpec(S) || S <- PortSpecs]