[libc-commits] [PATCH] D78737: [libc] Link mpfr and gmp wrapper to the libcMPFRWrapper.

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Apr 23 11:53:20 PDT 2020


sivachandra created this revision.
sivachandra added a reviewer: PaulkaToast.
Herald added subscribers: libc-commits, tschuett, mgorny.
Herald added a project: libc-project.

This will fix building the wrapper shared library when
BUILD_SHARED_LIBS is ON.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D78737

Files:
  libc/utils/MPFRWrapper/CMakeLists.txt


Index: libc/utils/MPFRWrapper/CMakeLists.txt
===================================================================
--- libc/utils/MPFRWrapper/CMakeLists.txt
+++ libc/utils/MPFRWrapper/CMakeLists.txt
@@ -12,6 +12,7 @@
     MPFRUtils.cpp
     MPFRUtils.h
   )
+  target_link_libraries(libcMPFRWrapper -lmpfr -lgmp)
 else()
   message(WARNING "Math tests using MPFR will be skipped.")
 endif()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78737.259649.patch
Type: text/x-patch
Size: 389 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20200423/68e4bf4e/attachment.bin>


More information about the libc-commits mailing list