aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/cc/clang.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/build-data/cc/clang.txt')
-rw-r--r--src/build-data/cc/clang.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/build-data/cc/clang.txt b/src/build-data/cc/clang.txt
index 06f87f524..40bdb0a0b 100644
--- a/src/build-data/cc/clang.txt
+++ b/src/build-data/cc/clang.txt
@@ -27,6 +27,8 @@ visibility_attribute '__attribute__((visibility("default")))'
<so_link_flags>
# The default works for GNU ld and several other Unix linkers
default -> "$(CXX) -shared -fPIC -Wl,-soname,$(SONAME)"
+
+darwin -> "$(CXX) -dynamiclib -fPIC -install_name $(LIBDIR)/$(SONAME)"
</so_link_flags>
<mach_opt>