From aa75c0981e87c9abb55938b8532ac4cfae383905 Mon Sep 17 00:00:00 2001 From: degomme Date: Wed, 2 Nov 2016 15:31:09 +0100 Subject: [PATCH] Use the libunwind from apple directly --- CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 72f539abfa..aa1e7538f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -363,7 +363,13 @@ endif() include(FindLibunwind) if(HAVE_LIBUNWIND) - SET(SIMGRID_DEP "${SIMGRID_DEP} -lunwind") + if(NOT APPLE) + SET(SIMGRID_DEP "${SIMGRID_DEP} -lunwind") + else() + # Apple forbids to link directly against its libunwind implementation + # So let's comply and link against the System framework + SET(SIMGRID_DEP "${SIMGRID_DEP} -lSystem") + endif() if("${CMAKE_SYSTEM}" MATCHES "Linux") set(SIMGRID_DEP "${SIMGRID_DEP} -lunwind-ptrace") # This supposes that the host machine is either an AMD or a X86. -- 2.20.1