Re: [fpc-pascal] Adding options when building packages

2018-11-27 Thread Dmitry Boyarintsev
On Tue, Nov 27, 2018 at 9:55 AM Ryan Joseph 
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  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Adding options when building packages

2018-11-27 Thread 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  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal