summaryrefslogtreecommitdiff
path: root/include/makeinclude
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2005-04-10 10:11:51 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2005-04-10 10:11:51 +0000
commitee06c0aaafdf10ac052648f1e84ba1b909fd69a6 (patch)
tree6ea7127f4622963302dd548d5dda2df43f14c34d /include/makeinclude
parent3dd6418e64dccbbf1b06d2375f8d1eaf0daaf16c (diff)
downloadATCD-ee06c0aaafdf10ac052648f1e84ba1b909fd69a6.tar.gz
ChangeLogTag:Sun Apr 10 03:02:21 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
Diffstat (limited to 'include/makeinclude')
-rw-r--r--include/makeinclude/platform_g++_common.GNU6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/makeinclude/platform_g++_common.GNU b/include/makeinclude/platform_g++_common.GNU
index 7c3d044c8ce..ba8badeed0c 100644
--- a/include/makeinclude/platform_g++_common.GNU
+++ b/include/makeinclude/platform_g++_common.GNU
@@ -115,3 +115,9 @@ ifeq ($(shared_libs), 1)
endif # GNU ld
endif # static_libs_only
endif # shared_libs
+
+# Take advantage of G++ (>= 4.x) visibility attributes to generate
+# improved shared library binaries.
+ifeq (4.,$(findstring 4.,$(CXX_VERSION)))
+CCFLAGS += -fvisibility=hidden -fvisibility-inlines-hidden
+endif # $(CXX_VERSION) == 4.x