Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
static link libstdc++6
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.
copperlight committed Dec 11, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 8def11c commit 1ab0895
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
@@ -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")

0 comments on commit 1ab0895

Please sign in to comment.