Browse Source

* 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 years ago
parent
commit
42f82f4d40
1 changed files with 5 additions and 0 deletions
  1. 5 0
      rtl/inc/psabieh.inc

+ 5 - 0
rtl/inc/psabieh.inc

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