summaryrefslogtreecommitdiff
path: root/include/makeinclude/platform_g++_common.GNU
diff options
context:
space:
mode:
Diffstat (limited to 'include/makeinclude/platform_g++_common.GNU')
-rw-r--r--include/makeinclude/platform_g++_common.GNU7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/makeinclude/platform_g++_common.GNU b/include/makeinclude/platform_g++_common.GNU
index 0d667cedbc8..7b164d88d83 100644
--- a/include/makeinclude/platform_g++_common.GNU
+++ b/include/makeinclude/platform_g++_common.GNU
@@ -35,3 +35,10 @@ ifeq ($(templates),explicit)
endif
CPPFLAGS += -DACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION
endif
+
+# The correct flags to pass to the linker for ELF dynamic shared library
+# versioning
+#
+ifneq ($(SONAME),)
+ SOFLAGS += -Wl,-soname -Wl,$(SONAME)
+endif