<div dir="ltr"><div>For those that are interested, converting all symlinks to be relative (in /usr/lib in the crossroot) fixes cross linking problems (i.e. when using --sysroot with ld) when targetting Debian Wheezy or similar systems (e.g Ubuntu, or in my case, Raspbian):<br>
<br>root@fermi:/usr/lib/arm-linux-gnueabihf# symlinks -c .<br>absolute: /usr/lib/arm-linux-gnueabihf/libcrypt.so -> /lib/arm-linux-gnueabihf/libcrypt.so.1<br>changed:  /usr/lib/arm-linux-gnueabihf/libcrypt.so -> ../../../lib/arm-linux-gnueabihf/libcrypt.so.1<br>
absolute: /usr/lib/arm-linux-gnueabihf/libz.so -> /lib/arm-linux-gnueabihf/libz.so.1.2.7<br>changed:  /usr/lib/arm-linux-gnueabihf/libz.so -> ../../../lib/arm-linux-gnueabihf/libz.so.1.2.7<br>absolute: /usr/lib/arm-linux-gnueabihf/libnsl.so -> /lib/arm-linux-gnueabihf/libnsl.so.1<br>
changed:  /usr/lib/arm-linux-gnueabihf/libnsl.so -> ../../../lib/arm-linux-gnueabihf/libnsl.so.1<br>absolute: /usr/lib/arm-linux-gnueabihf/libexpat.so -> /lib/arm-linux-gnueabihf/libexpat.so.1.6.0<br>changed:  /usr/lib/arm-linux-gnueabihf/libexpat.so -> ../../../lib/arm-linux-gnueabihf/libexpat.so.1.6.0<br>
absolute: /usr/lib/arm-linux-gnueabihf/libresolv.so -> /lib/arm-linux-gnueabihf/libresolv.so.2<br>changed:  /usr/lib/arm-linux-gnueabihf/libresolv.so -> ../../../lib/arm-linux-gnueabihf/libresolv.so.2<br>absolute: /usr/lib/arm-linux-gnueabihf/libm.so -> /lib/arm-linux-gnueabihf/libm.so.6<br>
changed:  /usr/lib/arm-linux-gnueabihf/libm.so -> ../../../lib/arm-linux-gnueabihf/libm.so.6<br>absolute: /usr/lib/arm-linux-gnueabihf/libthread_db.so -> /lib/arm-linux-gnueabihf/libthread_db.so.1<br>changed:  /usr/lib/arm-linux-gnueabihf/libthread_db.so -> ../../../lib/arm-linux-gnueabihf/libthread_db.so.1<br>
absolute: /usr/lib/arm-linux-gnueabihf/libnss_nisplus.so -> /lib/arm-linux-gnueabihf/libnss_nisplus.so.2<br>changed:  /usr/lib/arm-linux-gnueabihf/libnss_nisplus.so -> ../../../lib/arm-linux-gnueabihf/libnss_nisplus.so.2<br>
absolute: /usr/lib/arm-linux-gnueabihf/libnss_dns.so -> /lib/arm-linux-gnueabihf/libnss_dns.so.2<br>changed:  /usr/lib/arm-linux-gnueabihf/libnss_dns.so -> ../../../lib/arm-linux-gnueabihf/libnss_dns.so.2<br>absolute: /usr/lib/arm-linux-gnueabihf/libpcre.so -> /lib/arm-linux-gnueabihf/libpcre.so.3<br>
changed:  /usr/lib/arm-linux-gnueabihf/libpcre.so -> ../../../lib/arm-linux-gnueabihf/libpcre.so.3<br>absolute: /usr/lib/arm-linux-gnueabihf/libpng12.so -> /lib/arm-linux-gnueabihf/libpng12.so.0<br>changed:  /usr/lib/arm-linux-gnueabihf/libpng12.so -> ../../../lib/arm-linux-gnueabihf/libpng12.so.0<br>
absolute: /usr/lib/arm-linux-gnueabihf/libcidn.so -> /lib/arm-linux-gnueabihf/libcidn.so.1<br>changed:  /usr/lib/arm-linux-gnueabihf/libcidn.so -> ../../../lib/arm-linux-gnueabihf/libcidn.so.1<br>absolute: /usr/lib/arm-linux-gnueabihf/libutil.so -> /lib/arm-linux-gnueabihf/libutil.so.1<br>
changed:  /usr/lib/arm-linux-gnueabihf/libutil.so -> ../../../lib/arm-linux-gnueabihf/libutil.so.1<br>absolute: /usr/lib/arm-linux-gnueabihf/libnss_hesiod.so -> /lib/arm-linux-gnueabihf/libnss_hesiod.so.2<br>changed:  /usr/lib/arm-linux-gnueabihf/libnss_hesiod.so -> ../../../lib/arm-linux-gnueabihf/libnss_hesiod.so.2<br>
absolute: /usr/lib/arm-linux-gnueabihf/libanl.so -> /lib/arm-linux-gnueabihf/libanl.so.1<br>changed:  /usr/lib/arm-linux-gnueabihf/libanl.so -> ../../../lib/arm-linux-gnueabihf/libanl.so.1<br>absolute: /usr/lib/arm-linux-gnueabihf/libBrokenLocale.so -> /lib/arm-linux-gnueabihf/libBrokenLocale.so.1<br>
changed:  /usr/lib/arm-linux-gnueabihf/libBrokenLocale.so -> ../../../lib/arm-linux-gnueabihf/libBrokenLocale.so.1<br>absolute: /usr/lib/arm-linux-gnueabihf/libnss_files.so -> /lib/arm-linux-gnueabihf/libnss_files.so.2<br>
changed:  /usr/lib/arm-linux-gnueabihf/libnss_files.so -> ../../../lib/arm-linux-gnueabihf/libnss_files.so.2<br>absolute: /usr/lib/arm-linux-gnueabihf/libnss_nis.so -> /lib/arm-linux-gnueabihf/libnss_nis.so.2<br>changed:  /usr/lib/arm-linux-gnueabihf/libnss_nis.so -> ../../../lib/arm-linux-gnueabihf/libnss_nis.so.2<br>
absolute: /usr/lib/arm-linux-gnueabihf/<a href="http://libglib-2.0.so">libglib-2.0.so</a> -> /lib/arm-linux-gnueabihf/libglib-2.0.so.0<br>changed:  /usr/lib/arm-linux-gnueabihf/<a href="http://libglib-2.0.so">libglib-2.0.so</a> -> ../../../lib/arm-linux-gnueabihf/libglib-2.0.so.0<br>
absolute: /usr/lib/arm-linux-gnueabihf/libnss_compat.so -> /lib/arm-linux-gnueabihf/libnss_compat.so.2<br>changed:  /usr/lib/arm-linux-gnueabihf/libnss_compat.so -> ../../../lib/arm-linux-gnueabihf/libnss_compat.so.2<br>
<br></div>Bruce<br></div>