hadrian: Don't always links against libffi
The RTS flag ffi
is set to either True or False depending on whether
we want to link against libffi
, therefore in order to work out whether
to add the build tree to the arguments we check whether ffi
is in the
extraLibs or not before adding the argument.
Fixes #16022