Commit 2536c91
committed
fix: complete libffi duplicate symbol fix for dynamic builds
This commit completes the fix for duplicate libffi symbol errors that
occur with dynamic builds (DYNAMIC=1). The previous commit only guarded
one of two RTS_LIBFFI_SYMBOLS usages in rts/RtsSymbols.c.
Changes:
1. Guard the second RTS_LIBFFI_SYMBOLS usage at line 1199 with
#if !defined(INTERNAL_LIBFFI)
2. Update libffi-clib submodule to include -Wno-error in cc-options,
fixing java_raw_api.c deprecated function warnings treated as errors
When INTERNAL_LIBFFI is defined (default: using libffi-clib package),
the RTS should not register libffi symbols as built-ins since the
libffi-clib package provides them. This prevents GHCi runtime linker
from finding duplicate definitions when loading libffi-clib.1 parent c0add30 commit 2536c91
2 files changed
+3
-1
lines changedSubmodule libffi-clib updated from 0b3185c to 0b22f1f
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1196 | 1196 | | |
1197 | 1197 | | |
1198 | 1198 | | |
| 1199 | + | |
1199 | 1200 | | |
| 1201 | + | |
1200 | 1202 | | |
1201 | 1203 | | |
1202 | 1204 | | |
| |||
0 commit comments