Re: [fpc-devel] RTL make shared

2024-10-30 Thread Sven Barth via fpc-devel
Adriaan van Os via fpc-devel schrieb am Mi., 30. Okt. 2024, 06:50: > Sven Barth via fpc-devel wrote: > > Adriaan van Os via fpc-devel > > schrieb am Di., 29. Okt. 2024, > > 15:47: > > The idea of building the RTL in a dynamic ibrary is to have one copy

Re: [fpc-devel] RTL make shared

2024-10-29 Thread Adriaan van Os via fpc-devel
Sven Barth via fpc-devel wrote: Adriaan van Os via fpc-devel > schrieb am Di., 29. Okt. 2024, 15:47: The idea of building the RTL in a dynamic ibrary is to have one copy of the RTL threadvars, notably one copy of the _ExceptObjectStack threadvar

Re: [fpc-devel] RTL make shared

2024-10-29 Thread Sven Barth via fpc-devel
Adriaan van Os via fpc-devel schrieb am Di., 29. Okt. 2024, 15:47: > Sven Barth via fpc-devel wrote: > > Adriaan van Os via fpc-devel > > schrieb am Di., 29. Okt. 2024, > > 11:29: > > > > Trying to build the FPC RTL as a dynamic library on MacOS (with m

[fpc-devel] RTL make shared

2024-10-29 Thread Adriaan van Os via fpc-devel
Trying to build the FPC RTL as a dynamic library on MacOS (with make shared), I run into several problems 1. When I try with fpc-3.0.4 or 3.2.2, ppumove returns an ld error that -shared is an unknown flag. I think the ld flags -shared -E should be -dylib -dynamic on MacOS 2. When I do the lin

Re: [fpc-devel] RTL make shared

2024-10-29 Thread Adriaan van Os via fpc-devel
Sven Barth via fpc-devel wrote: Adriaan van Os via fpc-devel > schrieb am Di., 29. Okt. 2024, 11:29: Trying to build the FPC RTL as a dynamic library on MacOS (with make shared), I run into several problems I don't know when that was tested l

Re: [fpc-devel] RTL make shared

2024-10-29 Thread Sven Barth via fpc-devel
Adriaan van Os via fpc-devel schrieb am Di., 29. Okt. 2024, 11:29: > Trying to build the FPC RTL as a dynamic library on MacOS (with make > shared), I run into several > problems > I don't know when that was tested last in any platform... > 2. When I do the linking pass by hand, ld complains a

[fpc-devel] RTL make shared

2024-10-29 Thread Adriaan van Os via fpc-devel
Trying to build the FPC RTL as a dynamic library on MacOS (with make shared), I run into several problems 1. When I try with fpc-3.0.4 or 3.2.2, ppumove returns an ld error that -shared is an unknown flag. I think the ld flags -shared -E should be -dylib -dynamic on MacOS I forgot to mention