[Lazarus] building lazarus 1.0 with make OPT="-n" and fpc.cfg in different location

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Sep 5 00:33:54 CEST 2012


On Tue, 4 Sep 2012 11:02:57 -0600
Seth Grover <sethdgrover at gmail.com> wrote:

> Greetings. First off, congratulations on the 1.0 release. Lazarus is a
> terrific IDE and a great development platform.
> 
> I've got a script that I use to build FPC/Lazarus from source and roll
> it into my own custom package. During the build of Lazarus,
> /etc/fpc.cfg doesn't exist yet. This isn't a problem for the most
> part, because I used samplecfg to generate an fpc.cfg file in a
> temporary location. Then, when building Lazarus, I do it like this:
> 
> make bigide PP=/path/to/wherever/ppcx64 OPT="-n @/path/to/tmp/fpc.cfg"
> 
> The -n tells it to not use the regular cfg paths, and what follows
> tells it where to find the cfg file to use.
> 
> This works fine for most of the build: lazarus builds and links, as
> does startlazarus and some of the other binaries. However, when it
> gets to building the "lhelp" binary under chmhelp, I can see my OPTs
> aren't being passed down, and it fails with an error that /etc/fpc.cfg
> doesn't exist.

Fixed.

Mattias




More information about the Lazarus mailing list