Lazarus

Installation => Linux => Topic started by: benohb on April 22, 2018, 05:21:43 am

Title: musl libc
Post by: benohb on April 22, 2018, 05:21:43 am
https://www.musl-libc.org/
Can be used with Free Pascal linker   :)
Do you have any hints or tips for this


Code: Pascal  [Select][+][-]
  1. # path to the gcclib
  2. #ifdef cpui386
  3. .....
  4. .....
  5. #endif
  6. #ifdef cpux86_64
  7.  -Fl/usr/lib/x86_64-linux-musl/
  8.  
  9.  
  10. #endif
Title: Re: musl libc
Post by: Bi0T1N on December 26, 2021, 06:09:06 pm
You should also be aware that FPC needs the gcc binary as it is used to get the path to the libgcc. Installing gcc via apk on Alpine increases the size of the image by ~100mb.

Code: Text  [Select][+][-]
  1. / # gcc -m32 -print-libgcc-file-name
  2. /usr/lib/gcc/x86_64-alpine-linux-musl/10.3.1/libgcc.a
  3. / # gcc -m64 -print-libgcc-file-name
  4. /usr/lib/gcc/x86_64-alpine-linux-musl/10.3.1/libgcc.a

Otherwise it throws several errors with Could not find libgcc on installing FPC from official files as well as │/bin/sh: gcc: not found on compiling the compiler and RTL with make all.
TinyPortal © 2005-2018