Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2018-11

Adding options when building packages

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ryan Joseph

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

Reply by email

Dmitry Boyarintsev
to Ryan Joseph
AM Ryan Joseph wrote 6 lines
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...'

Reply by email