aboutsummaryrefslogtreecommitdiffstats
path: root/core/deps.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2023-05-16 09:22:28 +0200
committerLoïc Hoguin <[email protected]>2023-05-16 09:23:07 +0200
commit9d4f7c539c5e03e64751291492b011e1a539d072 (patch)
treeee59ef301145ccaf544ce23878e666479d027cae /core/deps.mk
parent7f93fa264acaac68d7bebaf47a0d6533ced11049 (diff)
downloaderlang.mk-9d4f7c539c5e03e64751291492b011e1a539d072.tar.gz
erlang.mk-9d4f7c539c5e03e64751291492b011e1a539d072.tar.bz2
erlang.mk-9d4f7c539c5e03e64751291492b011e1a539d072.zip
Fix autopatch of shared libraries on Darwin
Thanks to David.Gao / DavidAlphaFox for the original patch.
Diffstat (limited to 'core/deps.mk')
-rw-r--r--core/deps.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/deps.mk b/core/deps.mk
index 00d96aa..21281ec 100644
--- a/core/deps.mk
+++ b/core/deps.mk
@@ -604,6 +604,8 @@ define dep_autopatch_rebar.erl
"\t$$\(CC) -o $$\@ $$\? $$\(LDFLAGS) $$\(ERL_LDFLAGS) $$\(DRV_LDFLAGS) $$\(LDLIBS) $$\(EXE_LDFLAGS)",
case {filename:extension(Output), $(PLATFORM)} of
{[], _} -> "\n";
+ {".so", darwin} -> "-shared\n";
+ {".dylib", darwin} -> "-shared\n";
{_, darwin} -> "\n";
_ -> " -shared\n"
end])