Skip to content

./configure --with--ffi-libraries: ld cannot find libffi in a non-standard location

This ticket is to continue work on comment 19 to ticket #5743 (closed).

The issue is only relevant if you wish to use a system provided libffi rather than the in-tree libffi.

PHO's commenthttp://hackage.haskell.org/trac/ghc/ticket/5743#comment:19:

  1. .. If I understand this correctly, rts/libs.depend contains only -l flags so -L$(FFILibDir) won't be passed to the linker.

Apart from that, $(rts_LD_OPTS) seems to be ignored too.

igloo's comment http://hackage.haskell.org/trac/ghc/ticket/5743#comment:21:

  1. .. I think we only use rts_LD_OPTS when calling ld directly.
Trac metadata
Trac field Value
Version 7.7
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Build System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC PHO
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information