Adding options when building packages

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Adding options when building packages

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

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Adding options when building packages

dmitry boyarintsev
On Tue, Nov 27, 2018 at 9:55 AM Ryan Joseph <[hidden email]> wrote:

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...'

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal