[fpc-devel] Issue with Compiling FPC and MacOS Big Sur
Karoly Balogh (Charlie/SGR)
charlie at scenergy.dfmk.hu
Sun Nov 15 15:19:27 CET 2020
On Sun, 15 Nov 2020, Jonas Maebe via fpc-devel wrote:
> > my Macs that the timestamp of that file changed), but this will not help
> > for compiling the compiler as the compiler is beeing compiled with the
> > flag -n which effectively turns off reading /etc/fpc.cfg.
> Indeed, I glossed over the fact that you were rebuilding FPC.
> > make clean all
> > OPT="-Fl/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib
> > -Ff/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks"
> You should use the -XR parameter
> (-XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk) instead of
> -Fl/Ff in this situation.
Yes, I already had to dothis in my build scripts on Mojave. I defined an
"FIXMOJAVE" environment var, which contains that -XR/Library/... path you
wrote above, and in all my build scripts I just do:
make OS_TARGET=foo CPU_TARGET=bar OPT="-other -args $FIXMOJAVE" CROSSOPT=...
It's not the most convenient thing, but it works.
More information about the fpc-devel