<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
</head>
<body>
<p style="margin: 0pt;">
<span>
<span></span>
</span>
</p>
<p style="margin: 0px; "></p>
<div style="margin: 5px 0px;">
<br/>
Reinier Olislagers <reinierolislagers@gmail.com> hat am 11. Februar 2012 um 08:28 geschrieben:
<br/>
<br/>
> On 10-2-2012 18:23, Ludo Brands wrote:
<br/>
> >>> - (I hesitated to put this in the category "bugs") lazarus is
<br/>
> >>> configured to use (default on ubuntu) ~/fpc/bin/fpc. I have 2.4.4
<br/>
> >>> installed with a /etc/fpc.cfg and ~/fpc/bin/fpc will just launch
<br/>
> >>> 2.4.4. Changing the compiler to ~/fpc/compiler/ppc386 and copying
<br/>
> >>> fpc.cfg to ~/fpc/compiler/ still fails because the compiler still
<br/>
> >>> picks up /etc/fpc.cfg. AFAIK the fpc.cfg in the compiler
<br/>
> >> dir will only
<br/>
> >>> be picked up when there is no .fpc.cfg in the home directory nor a
<br/>
> >>> fpc.cfg in the current directory nor one in the path specified by
<br/>
> >>> PPC_CONFIG_PATH nor a /etc/fpc.cfg. Detecting a conflicting fpc.cfg
<br/>
> >>> and warning the user would be nice.
<br/>
> >> Agreed.
<br/>
> >> If I understand the FPC User's Guide correctly, one could use
<br/>
> >> the -n option to tell fpc to ignore config files, then
<br/>
> >> specify the one we want with @. The question is, can that be
<br/>
> >> done with Lazarus
</div>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">Project Options / Compiler Options / Other </p>
<p style="margin: 0px;"> </p>
<div style="margin: 5px 0px;">- I suppose not...</div>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">Why do you think so? </p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">>Would copying over the > >> newly installed FPC compiler's fpc.cfg to the installed </p>
<div style="margin: 5px 0px;">
> >> lazarus dir work?
<br/>
> >>
<br/>
> >
<br/>
> > I tried the latter but it didn't work.
<br/>
> What about letting fpcup write another shell script for fpc e.g.
<br/>
> something like:
<br/>
>
<br/>
> #!/bin/sh
<br/>
> ~/wherever/we/installed/fpc -n @~/wherever/we/installed/fpc.cfg $*
<br/>
> which should instruct our fpc to ignore any other fpc.cfg, use our own,
<br/>
> and get any other arguments passed to the script.
<br/>
>
<br/>
> Then assign this script as the compiler in Lazarus?!?!
</div>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">No need. </p>
<p style="margin: 0px;"> </p>
<div style="margin: 5px 0px;">
> > (I suppose this might not work as Lazarus might be looking for other
<br/>
> files in the compiler path!??!)
</div>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">Lazarus does neither read nor search the fpc.cfg. It asks the compiler.</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">Mattias</p>
<p> </p>
</body>
</html>