diff options
author | Brujo Benavides <[email protected]> | 2015-11-28 13:50:57 -0300 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2015-12-14 12:50:09 +0100 |
commit | 0f11e62b647c735bb13f957eeec9586be7e7b51a (patch) | |
tree | ae6198bc4221f7a5dea2a26807b70d3e95b827e1 | |
parent | 313e49fe1207a54f9d65a1bad7a1b0f5cf691488 (diff) | |
download | erlang.mk-0f11e62b647c735bb13f957eeec9586be7e7b51a.tar.gz erlang.mk-0f11e62b647c735bb13f957eeec9586be7e7b51a.tar.bz2 erlang.mk-0f11e62b647c735bb13f957eeec9586be7e7b51a.zip |
Fix for bcrypt compilation on OSX El Capitan
-rw-r--r-- | core/deps.mk | 7 |
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] |