From 5a2fd7d93b31093a03194b650a3864581d7e1429 Mon Sep 17 00:00:00 2001 From: Matthew Johnson Date: Wed, 11 Dec 2024 11:33:04 -0500 Subject: [PATCH] static link libstdc++6 (#141) The libstdc++6 versions can vary much more dramatically than the libc6 versions on a given system, so statically link this library. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ba0fa35..4f1554c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,6 +54,8 @@ add_test( #-- atlas_system_agent executable add_executable(atlas_system_agent "bin/atlas-agent.cc") target_link_libraries(atlas_system_agent sysagent) +# required to allow running on older systems, such as bionic +target_link_options(atlas_system_agent PRIVATE "-static-libstdc++") #-- test_nvml executable add_executable(test_nvml "bin/test_nvml.cc")