summaryrefslogtreecommitdiff
path: root/wrappers
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2015-03-12 23:27:56 +0000
committerJose Fonseca <jfonseca@vmware.com>2015-03-12 23:54:28 +0000
commit21e685f12ef9a9d2ef0c31bb538c6171ebf72d2a (patch)
tree5ebd1c0e149b5fe68c84b9683daf2e83923b4ef3 /wrappers
parent0c620cbacb7aef791c9593d58f3a5075a4612b54 (diff)
cmake: Statically link wrappers against libgcc and libstdc++ on Linux.
Diffstat (limited to 'wrappers')
-rw-r--r--wrappers/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/wrappers/CMakeLists.txt b/wrappers/CMakeLists.txt
index 9aaf2461..38b7e7c6 100644
--- a/wrappers/CMakeLists.txt
+++ b/wrappers/CMakeLists.txt
@@ -2,6 +2,13 @@
# API tracers
+if (ENABLE_STATIC_LIBGCC)
+ add_linker_flags ("-static-libgcc")
+endif ()
+if (ENABLE_STATIC_LIBSTDCXX)
+ add_linker_flags ("-static-libstdc++")
+endif ()
+
set (CMAKE_INCLUDE_CURRENT_DIR ON)
include_directories (