diff options
author | lloyd <[email protected]> | 2011-05-03 13:10:45 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2011-05-03 13:10:45 +0000 |
commit | 8b2e5f9d9744f74ee65deb7f9990c1bf468a7602 (patch) | |
tree | 1b72f799671ca9bacf6b1663c31464073adeb990 /src/build-data/cc/clang.txt | |
parent | 7b4382d96065b05ed44fbc24b9e8134036b070b9 (diff) |
When building for GCC, always get the version number, and turn off TR1
and -fvisibility support if the version is too old. You can also turn
them off explicitly with the (hidden) option --without-visibility. We
get the version number from the binary specified with --cc-bin, if the
user set that, rather than from plain 'g++'.
Fix Solaris install - apparently 'install' cmd is broken/dumb.
Fix Ekopath flags for submodels.
Diffstat (limited to 'src/build-data/cc/clang.txt')
-rw-r--r-- | src/build-data/cc/clang.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/build-data/cc/clang.txt b/src/build-data/cc/clang.txt index 5f522cdb6..f4db26ee8 100644 --- a/src/build-data/cc/clang.txt +++ b/src/build-data/cc/clang.txt @@ -17,11 +17,12 @@ makefile_style unix lib_opt_flags "-O2" check_opt_flags "-O2" -shared_flags "-fPIC -fvisibility=hidden" +shared_flags "-fPIC" debug_flags -g no_debug_flags "-finline-functions" -dll_import_flags '__attribute__((visibility("default")))' +visibility_build_flags "-fvisibility=hidden" +visibility_attribute '__attribute__((visibility("default")))' <so_link_flags> # The default works for GNU ld and several other Unix linkers |