Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Commit

Permalink
Add '-static-libgcc' to CMAKE_C_FLAGS
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
ruslo committed Nov 23, 2017
1 parent 26da6d6 commit d5e9165
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flags/static-std.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ include(polly_add_cache_flag)
polly_add_cache_flag(CMAKE_CXX_FLAGS "-static-libgcc")
polly_add_cache_flag(CMAKE_CXX_FLAGS "-static-libstdc++")

polly_add_cache_flag(CMAKE_C_FLAGS "-static-libgcc")

# There is no macro to detect this flags on toolchain calculation so we must
# mark this toolchain explicitly.
list(APPEND HUNTER_TOOLCHAIN_UNDETECTABLE_ID "static-std")
list(APPEND HUNTER_TOOLCHAIN_UNDETECTABLE_ID "static-std-v2")

0 comments on commit d5e9165

Please sign in to comment.