mirror of
https://git.freebsd.org/ports.git
synced 2025-07-13 23:39:20 -04:00
- Add --disable-cxx-exceptions so libunwind does not implement the _Unwind_* API and does not use its internal unwind.h. The base system libgcc_s provides this API. This was already the upstream default for most architectures. - Add --disable-unwind-header to prevent installation of unwind.h. Instead, install an unwind.h that forwards to the base system unwind.h, but not on FreeBSD 14 where all implementations of unwind.h (base, lang/gcc*, and devel/llvm*) are compatible. PR: 263370 Approved by: sunpoet
26 lines
458 B
C
26 lines
458 B
C
#ifndef _LIBUNWIND_UNWIND_H
|
|
#define _LIBUNWIND_UNWIND_H
|
|
|
|
#if __has_include("/usr/include/unwind.h")
|
|
#include "/usr/include/unwind.h"
|
|
#elif __has_include("/usr/include/c++/v1/unwind.h")
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#if defined(__arm__) && !defined(__ARM_DWARF_EH__)
|
|
#include "/usr/include/c++/v1/unwind-arm.h"
|
|
#else
|
|
#include "/usr/include/c++/v1/unwind-itanium.h"
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#else
|
|
#include_next <unwind.h>
|
|
#endif
|
|
|
|
#endif
|