diff options
author | akhropov <[email protected]> | 2023-04-17 17:45:46 +0300 |
---|---|---|
committer | akhropov <[email protected]> | 2023-04-17 17:45:46 +0300 |
commit | 7469e380b151bed142677d91753f5a8f598b09b4 (patch) | |
tree | a554413372c191961ea5a8f4bab22201a31d7fa0 /clang.toolchain | |
parent | bd077c2f44b9b893493948655513e39a7830ca7f (diff) |
Fix: -lc -lm should go at the end of the linking command otherwise there're undefined symbols like __Unwind_Backtrace in resulting dylibs on macOS..
Diffstat (limited to 'clang.toolchain')
-rw-r--r-- | clang.toolchain | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang.toolchain b/clang.toolchain index 06fdf138b75..ed726083a15 100644 --- a/clang.toolchain +++ b/clang.toolchain @@ -2,5 +2,7 @@ set(CMAKE_C_COMPILER clang-12) set(CMAKE_CXX_COMPILER clang++-12) set(CMAKE_EXE_LINKER_FLAGS -fuse-ld=lld) set(CMAKE_SHARED_LINKER_FLAGS -fuse-ld=lld) +set(CMAKE_C_STANDARD_LIBRARIES "-lc -lm") +set(CMAKE_CXX_STANDARD_LIBRARIES "-lc -lm") set(ENV{CC} clang-12) set(ENV{CXX} clang++-12) |