[fpc-pascal] Link on another host - how to collect and copy all files?
Joost van der Sluis
joost at cnoc.nl
Mon Dec 13 18:02:57 CET 2021
Hi all,
I've got into troubles with a dynamic library on Linux. It uses pthreads
but on the target system glibc 2.24 is used, while on my development
machine 2.34 is being used. I've tried to copy the libc-libraries from
the target system to my host and uxe -Xr -Xd, but it does not work.
I guess that it is getting complicated because in the old glibc version
applications are linked to pthreads, while in this newer version the
link is made against libc itself.
Now I want to copy all files that are used by the link-script to the
target, and link there. But.. there are really a lot of files involved.
(And the paths in ppas.sh and link.res are absolute paths?)
Does someone has a tool of other good trick to copy everything to the
target machine, and link there?
(I almost started to add a separate option to the compiler to create a
script do this, but there must be some other way to do this)
Regards,
Joost.
ps: I can also compile on the target, but my goal is to try different
compiler versions. I can not install those on the target machine.
More information about the fpc-pascal
mailing list