Discussion:
[fpc-pascal] Adding options when building packages
Ryan Joseph
2018-11-27 14:54:51 UTC
Permalink
Since upgrading to Mac OS 10.14 a file has moved in the system which needs to be linked to. I’m able to work around this by adding a search path to the compiler options but when building the /packages directory from sources I run into problems:

cd /Developer/ObjectivePascal/fpc-git/packages;make clean all FPC=/Developer/ObjectivePascal/fpc-git/compiler/x86_64/pp
...
/Developer/ObjectivePascal/fpc-git/compiler/x86_64/pp fpmake.pp -n -Fu../packages/fpmkunit/units_bs/x86_64-darwin -Fu../rtl/units/x86_64-darwin
ld: file not found: /usr/lib/crt1.10.5.o
An error occurred while linking
Error: Error while linking
Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
make: *** [fpmake] Error 1

Is there is a way I can add "-Fl/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib” to that command so it finds the file?

Regards,
Ryan Joseph

_______________________________________________
fpc-pascal maillist - fpc-***@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/m
Dmitry Boyarintsev
2018-11-27 15:24:21 UTC
Permalink
Post by Ryan Joseph
Is there is a way I can add
"-Fl/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib” to that
command so it finds the file?
make ....
OPT='-Fl/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib
...extra options...'

Loading...