Hello Marco. > Do you see differences between ppas.sh and link.res with and without > smartlinking ohter than --gc-sections?
For link.res => no differences. For ppas.sh => only "--gc-section" was added. > If you compile without smartlinking but with -s and add --gc-sections > to the ppas.sh file yourself, what happens then? 1) Compiling => ok, objects created. 2) Linking: after adding--gc-sections to the ppas.sh, I did: # cd /usr/test # sh ppas.sh => "Linking ./test # ./test => "ELF interpreter /usr/libexec/ld-elf.so.1 not found, error 8 > Does it matter if you import unit "cmem" into your test program? uses cmem, cthreads, classes; Compiling and linking with --gc-sections: ok. # ./test => "ELF interpreter /usr/libexec/ld-elf.so.1 not found, error 8 ------------------------- Checkmate ;-) Fre;D ----- Many thanks ;-) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Smart-link-in-FreeBSD-multi-arch-tp5726375p5726640.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