Hello. How to define the search path of libraries while linking ?
In a FreeBSD 64 multiarch system, fpc32 compiles without problems but at linking there is that message: > /usr/bin/ld: skipping incompatible /usr/lib/crti.o when searching for > /usr/lib/crti.o Of course because /usr/lib/crti.o is 64 bit. The 32 bit libraries are in /usr/lib32/ and in /usr/local/lib32. How to tell to *ld* to search in /usr/lib32 + /usr/local/lib32 while linking? Similar problem on FreeBSD with Linux emulation enabled. fpc-linux (with Linux-units installed) can compile on FreeBSD but at linking there is a "ELF not recognized" message given by *ld*. Can that be fixed too ? PS: Absolutely no problem to compile and link using fpc.exe (via wine and with Windows-units installed) on a FreeBSD 64 system. Thanks. Fre;D ----- Many thanks ;-) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Libraries-search-path-of-usr-bin-ld-tp5726191.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