diff options
author | Loïc Hoguin <[email protected]> | 2023-05-16 09:22:28 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2023-05-16 09:23:07 +0200 |
commit | 9d4f7c539c5e03e64751291492b011e1a539d072 (patch) | |
tree | ee59ef301145ccaf544ce23878e666479d027cae | |
parent | 7f93fa264acaac68d7bebaf47a0d6533ced11049 (diff) | |
download | erlang.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.
-rw-r--r-- | core/deps.mk | 2 |
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]) |