[libc-commits] [libc] [libc][CMake] Set library type of libcMPFRWrapper to STATIC (PR #99527)
via libc-commits
libc-commits at lists.llvm.org
Thu Jul 18 10:00:57 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: OverMighty (overmighty)
<details>
<summary>Changes</summary>
Fixes linker errors due to hidden symbols when running CMake with
-DBUILD_SHARED_LIBS=ON.
---
Full diff: https://github.com/llvm/llvm-project/pull/99527.diff
1 Files Affected:
- (modified) libc/utils/MPFRWrapper/CMakeLists.txt (+1-1)
``````````diff
diff --git a/libc/utils/MPFRWrapper/CMakeLists.txt b/libc/utils/MPFRWrapper/CMakeLists.txt
index e74b02204ed6f..be0415d0956fa 100644
--- a/libc/utils/MPFRWrapper/CMakeLists.txt
+++ b/libc/utils/MPFRWrapper/CMakeLists.txt
@@ -1,5 +1,5 @@
if(LIBC_TESTS_CAN_USE_MPFR)
- add_library(libcMPFRWrapper
+ add_library(libcMPFRWrapper STATIC
MPFRUtils.cpp
MPFRUtils.h
mpfr_inc.h
``````````
</details>
https://github.com/llvm/llvm-project/pull/99527
More information about the libc-commits
mailing list