[fpc-pascal] Smart link in FreeBSD multi-arch ?

fredvs fiens at hotmail.com
Wed Sep 21 19:07:58 CEST 2016


Hello.

I will try to explain the problem...

In a multi-arch system (64 bit system that can run 32 bit apps too) FreeBSD
64, there is problem if a fpc 32 bit application was compiled with smart
link (-XX).

This because FreeBSD call *ld-elf32.so.1* for 32 bit applications, in place
of *ld-elf.so.1* in his multi-arch sytsem. 

On mono-arch system (32 bit or 64 bit), FreeBSD call ld-elf.so.1 (that for
32 or 64 bit).

So, to resume, with smart link (-XX) in a 32 bit FreeBSD app, the link would
search first for *ld-elf32.so.1* and if not exist, search for *
ld-elf.so.1*.

And it is not the case, with -XX, the program search only for *ld-elf.so.1*,
even if it is on a multi-arch system.

Hope somebody has understood.

Thanks.

Fre;D





-----
Many thanks ;-)
--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Smart-link-in-FreeBSD-multi-arch-tp5726375.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.



More information about the fpc-pascal mailing list