aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/cc/clang.txt
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-09-28 14:49:56 +0000
committerlloyd <[email protected]>2010-09-28 14:49:56 +0000
commit7c0a8f58cfbbefcb37d0337ba4f8c592998bf38e (patch)
treef227b05bd491834353bd4a9af0ca1a43f237f728 /src/build-data/cc/clang.txt
parent126e424ecf9045dbb44763b287bf96f401260230 (diff)
Use visibility control with Clang, same syntax as GCC
Diffstat (limited to 'src/build-data/cc/clang.txt')
-rw-r--r--src/build-data/cc/clang.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/build-data/cc/clang.txt b/src/build-data/cc/clang.txt
index 6bd260f73..fde720d18 100644
--- a/src/build-data/cc/clang.txt
+++ b/src/build-data/cc/clang.txt
@@ -17,10 +17,12 @@ makefile_style unix
lib_opt_flags "-O2"
check_opt_flags "-O2"
-shared_flags "-fPIC"
+shared_flags "-fPIC -fvisibility=hidden"
debug_flags -g
no_debug_flags "-finline-functions"
+dll_import_flags '__attribute__((visibility("default")))'
+
<so_link_flags>
# The default works for GNU ld and several other Unix linkers
default -> "$(CXX) -shared -fPIC -Wl,-soname,$(SONAME)"