[fpc-pascal] Libraries-search-path of /usr/bin/ld ?

fredvs fiens at hotmail.com
Wed Aug 31 17:25:31 CEST 2016


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

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.



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.

More information about the fpc-pascal mailing list