[fpc-devel] MacOS Mojave beta - crt1.o not installed to /usr/lib

Jonas Maebe jonas at freepascal.org
Sun Jul 1 22:34:32 CEST 2018


On 01/07/18 22:18, Michael Ring wrote:
> 
> make clean buildbase CPU_TARGET=x86_64 INSTALL_PREFIX=$HOME/3.1.1 
> FPCOPT="-XR/Library/Developer/CommandLineTools//SDKs/MacOSX.sdk/"
> 
> and patching my /etc/fpc.cfg to include:
> 
> #ifdef cpui386
> -XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/
> -Fl/Library/Developer/CommandLineTools/usr/lib/clang/10.0.0
> #endif
> #ifdef cpux86_64
> -XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/
> -Fl/Library/Developer/CommandLineTools/usr/lib/clang/10.0.0
> #endif
> 
> both actions were needed for a successful compile...

What errors do you get if you don't include the -Fl option?

> Is there a better way to make compiles work on Mojave?

The -XR above seems to be the correct way to handle this change. We 
could also hard code that search path in the compiler in addition to 
/usr/lib


Jonas



More information about the fpc-devel mailing list