Skip to content

Commit

Permalink
static link libstdc++6 (#141)
Browse files Browse the repository at this point in the history
The libstdc++6 versions can vary much more dramatically than the libc6
versions on a given system, so statically link this library.
  • Loading branch information
copperlight authored Dec 11, 2024
1 parent 8def11c commit 5a2fd7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 5a2fd7d

Please sign in to comment.