<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>On Wed, Sep 2, 2020, at 14:40, Sven Barth via fpc-pascal wrote:<br></div><blockquote type="cite" id="qt" style=""><div dir="auto"><div><div class="qt-gmail_quote"><div dir="ltr" class="qt-gmail_attr">Carlo Kok via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>> schrieb am Mi., 2. Sep. 2020, 11:09:<br></div><blockquote class="qt-gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-color:rgb(204, 204, 204);border-left-style:solid;border-left-width:1px;padding-left:1ex;"><div><u></u><br></div><div><div><br></div><div>Is there something else I need to do to allow FFI to work on arm64? (Does this depend on a dylib? or a static library?, and do I need to explicitly reference that?)<br></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">You need the libffi library compiled for macOS on ARM ( <a href="https://github.com/libffi/libffi">https://github.com/libffi/libffi</a> ) and then you might need to add a "{$linklibrary ffi}" or so, cause the ffi unit was not set tested on macOS. <br></div><div dir="auto"><br></div></div></blockquote><div><br></div><div>Thanks. It doesn't look like it's officially supported:<br></div><div><br></div><div><a href="https://sourceware.org/libffi/">https://sourceware.org/libffi/</a><br></div><div><br></div><div><br></div></body></html>