[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:36:01 CET 2021
Op 13-12-2021 om 18:27 schreef Jonas Maebe via fpc-pascal:
> On 13/12/2021 18:02, Joost van der Sluis via fpc-pascal wrote:
>> 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.
>
> You'd mainly need -XR in that case.
I'll try that one as well..
>> 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)
>
> There is already an option for this: -st . I don't know how well it
> works though.
I've tried -sT but it didn't do much, except for fixing the path-names
for the target. But -st does more. Good to know that it is for exactly
this purpose. I'll see if I can manage to get it to work.
Regards,
Joost.
More information about the fpc-pascal
mailing list