rvk wrote explicitly that his code needs to be added to /etc/fpc.cfg
In my script it was needed (way back in 2018).
But looking back... it seems that now I have duplicate lines of the gcc lib.
# cat ./.fpc.cfg | grep 12
-Fl/usr/lib/gcc/aarch64-linux-gnu/12
-Fl/usr/lib/gcc/aarch64-linux-gnu/12
I'm not sure if that's always been the case. Could it be that the addition of "# path to the gcclib" by fpcmkcfg???
My script is from before 2018 and maybe fpcmkcfg wasn't adding then yet.
I can remember adding this to my script because of the errors of missing crtbegin.o and crtend.o.
Or could it be the ifdefs don't always trigger that line?
# path to the gcclib
#ifdef Linux
#ifdef cpuaarch64
-Fl/usr/lib/gcc/aarch64-linux-gnu/12
#endif
#endif