I just updated to FPC 29428 and now I can no longer cross compile to i386
(I'm on x86_64). The linking stage always fail with:
"/usr/bin/ld: skipping incompatible <libpath here> when searching for
-l<libname>"

The weird thing is that the linker only looks at /lib and /usr/lib, but not
/usr/lib32, which should be the location of 32-bit libraries on 64-bit
system. Using -Cn, I can see that link.res doesn't contain path to
/usr/lib32, and manually changing it makes the linking success.



--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/Linker-script-doesn-t-search-in-usr-lib32-when-cross-compiling-from-x86-64-to-i386-tp5720749.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to