<div dir="ltr"><div><div><div><div>Using FPC 2.7.1 I'm cross-compiling from x86_64 to ARM/RPi and have specified:<br><br><div style="margin-left:40px">-XR/usr/local/opt/chroot/raspbian/rootfs<br></div><br></div>This produces a link.res file that includes the following:<br>
<br><div style="margin-left:40px">SEARCH_DIR("/usr/local/opt/chroot/raspbian/rootfs/usr/lib/arm-linux-gnueabihf/")<br>SEARCH_DIR("/usr/local/opt/chroot/raspbian/rootfs/lib/")<br>SEARCH_DIR("/usr/local/opt/chroot/raspbian/rootfs/usr/lib/")<br>
</div><br></div>but it DOES NOT include this line:<br><br><div style="margin-left:40px">SEARCH_DIR("/usr/local/opt/chroot/raspbian/rootfs/lib/arm-linux-gnueabihf/")<br></div>
<br></div>despite the fact the ld.so configuration file:<br><br><div style="margin-left:40px">/usr/local/opt/chroot/raspbian/rootfs/etc/ld.so.conf.d/arm-linux-gnueabihf.conf<br></div><br></div><div>specifies both paths as:<br>
<br><div style="margin-left:40px"># Multiarch support<br>/lib/arm-linux-gnueabihf<br>/usr/lib/arm-linux-gnueabihf<br></div><br></div><div>What am I doing wrong?<br><br></div><div>Thanks, Bruce<br></div></div>