summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2019-01-28 19:26:41 +0000
committerPetr Hosek <phosek@chromium.org>2019-01-28 19:26:41 +0000
commit4001b16dc4cc1b61cbcf1d9162da8af79a35dc75 (patch)
treede759df2d64ed69734c73eeae7242d1d5ed31c72
parente050272d2eb57eb4e56a37b429a61df2ebb8aa3e (diff)
downloadlibunwind_llvm-4001b16dc4cc1b61cbcf1d9162da8af79a35dc75.tar.gz
Revert "[CMake] Use __libc_start_main rather than fopen when checking for C library"
This reverts commit r352341: it broke the build on macOS which doesn't seem to provide __libc_start_main in its C library. git-svn-id: https://llvm.org/svn/llvm-project/libunwind/trunk@352411 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--cmake/config-ix.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
index c0c9a53..670c31f 100644
--- a/cmake/config-ix.cmake
+++ b/cmake/config-ix.cmake
@@ -3,7 +3,7 @@ include(CheckCCompilerFlag)
include(CheckCXXCompilerFlag)
include(CheckLibraryExists)
-check_library_exists(c __libc_start_main "" LIBUNWIND_HAS_C_LIB)
+check_library_exists(c fopen "" LIBUNWIND_HAS_C_LIB)
if (NOT LIBUNWIND_USE_COMPILER_RT)
check_library_exists(gcc_s __gcc_personality_v0 "" LIBUNWIND_HAS_GCC_S_LIB)