Try -Flpath/to/lib when compiling.When compiling I just type in the terminal "fpc -B -gl myFile.pas", I'm not sure to understand your point.
If that works, put it in your fpc.cfg
W.r.t. to crt1.o: does this link (https://stackoverflow.com/questions/44141166/ld-file-not-found-usr-lib-crt1-o) help?I've already install command line tools using "xcode-select --install"
If FPC is already installed, you should be able to compile by adding -XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk (either on the command line, or to your configuration file)
The installer check will need to be updated.
Dunno if it might help, but try to add -WM10.14 to the commandline.
Adding "-XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk", helps... but seems like I'm using "Free Pascal Compiler version 3.0.2 [2017/02/12] for i386" (and cannot install the newer compiler since the install cannot detect the new folder use for the command line tools...). Since macOS 10.14 is 64bits only I get this error : "The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)"
I found a repo on github with old repos and got the SDK from
https://github.com/phracker/MacOSX-SDKs/tree/master/MacOSX10.13.sdk (https://github.com/phracker/MacOSX-SDKs/tree/master/MacOSX10.13.sdk)
Lazarus 2.1.0 (trunk) running well on MacOS Mojave
Jonas..I have uploaded a new installer for FPC 3.0.4 (called FPC 3.0.4a) that will install on macOS 10.14. The compiler has not changed, only the installer and the default fpc.cfg file (and fpcmkcfg, the program that generated the fpc.cfg file).
Pascal isn't a bad first language to learn. That's what it was designed for was to teach student's how to program. But, yeah, for serious programming of a Mac, Objective-C is the best.
Freepascal don't work on macOS 10.14.I am using Travis for testing Free Pascal code on Mac OS X.