浏览代码

* the libunwind API resides in libgcc_s on Linux
o also link against libc (the current llvm code generator assumes it for
memcpy, and libgcc_s depends on it anyway)

git-svn-id: branches/debug_eh@40433 -

Jonas Maebe 6 年之前
父节点
当前提交
42f82f4d40
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      rtl/inc/psabieh.inc

+ 5 - 0
rtl/inc/psabieh.inc

@@ -44,6 +44,11 @@
 
 {$packrecords c}
 
+{$ifdef linux}
+{$linklib c}
+{$linklib libgcc_s}
+{$endif}
+
 {$if (defined(CPUARMEL) or defined(CPUARMHF)) and not defined(darwin)}
 {$define __ARM_EABI_UNWINDER__}
 {$error add ARM EABI unwinder support}