aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-10-30 15:48:08 +0000
committerlloyd <[email protected]>2012-10-30 15:48:08 +0000
commitf12d2fbf88638d3a66f9fbb29fb335a2f223f05c (patch)
tree3992263e724b34c56ee919258765eca700fea724 /src
parent3b62f6729a930b81c3110962f31fb871a5691612 (diff)
Use OS X specific linker flags
Diffstat (limited to 'src')
-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>