diff options
author | lloyd <[email protected]> | 2010-09-28 14:49:56 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-09-28 14:49:56 +0000 |
commit | 7c0a8f58cfbbefcb37d0337ba4f8c592998bf38e (patch) | |
tree | f227b05bd491834353bd4a9af0ca1a43f237f728 /src/build-data/cc | |
parent | 126e424ecf9045dbb44763b287bf96f401260230 (diff) |
Use visibility control with Clang, same syntax as GCC
Diffstat (limited to 'src/build-data/cc')
-rw-r--r-- | src/build-data/cc/clang.txt | 4 |
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)" |