[fpc-pascal] Does FPC require glibc?
pascaldragon at googlemail.com
Tue May 7 07:30:41 CEST 2019
Am 07.05.2019 um 00:16 schrieb Nozz via fpc-pascal:
> On Monday, May 6, 2019 10:48 PM, Sven Barth
> <pascaldragon at googlemail.com> wrote:
>> Nozz via fpc-pascal <fpc-pascal at lists.freepascal.org
>> <mailto:fpc-pascal at lists.freepascal.org>> schrieb am Mo., 6. Mai
>> 2019, 22:18:
>> Empty Message
>> Depends on what you're using (and the platform). E.g. the compiler
>> itself runs without glibc on Linux, but if you need to use threads
>> for example that changes. Also if you link against libraries like GTK
>> or Qt you also indirectly link to glibc and the RTL's initialization
>> code will change due to this.
>> On some targets (e.g. macOS) using the C library is a must.
> Thanks, if I want to compile a program for Alpine Linux (musl libc
> instead of glibc) , is my best option to compile FPC&Lazarus from source?
As a first step you could simply test whether the existing binaries
work, cause the C library is entered as "libc.so.6" into the ELF file.
If it doesn't start and complains about a missing library then you
should recompile both from source.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal