为 Mac 构建 libunwind

Vis*_*esh 2 macos ios ios5 libunwind

我正在尝试在 Mac 上为 iOS 和 Mac 构建 libunwind,我能够解决一些编译问题。

在 Mac 上构建

我使用配置项目

./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
Run Code Online (Sandbox Code Playgroud)

elf.h从谷歌的breakpad项目复制。

https://google-breakpad.googlecode.com/svn-history/r1017/trunk/src/common/android/include/elf.h

我现在收到以下错误:

/usr/include/elf.h:58:15: fatal error: 'elf.h' file not found
#include_next <elf.h>
Run Code Online (Sandbox Code Playgroud)

任何人都可以帮我解决这个问题或者还有其他一些构建 libunwind 的过程吗?

我还想知道是否还需要做其他事情来为 iOS 构建 libunwind。