<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
This is an evil travesty and I'm not happy about it:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>-Fu$_$/../../lib/fpc/$fpcversion/units/$fpctarget<br>
</span>
<div>-Fu$_$/../../lib/fpc/$fpcversion/units/$fpctarget/*<br>
</div>
<span>-Fu$_$/../../lib/fpc/$fpcversion/units/$fpctarget/rtl</span><br>
</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
--</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Alexander Grotewohl</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
https://dcclost.com</div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> fpc-pascal <fpc-pascal-bounces@lists.freepascal.org> on behalf of fredvs via fpc-pascal <fpc-pascal@lists.freepascal.org><br>
<b>Sent:</b> Saturday, April 11, 2020 8:52 PM<br>
<b>To:</b> fpc-pascal@lists.freepascal.org <fpc-pascal@lists.freepascal.org><br>
<b>Cc:</b> fredvs <fiens@hotmail.com><br>
<b>Subject:</b> Re: [fpc-pascal] Search path order for fpc.cfg</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">I promise, it is the last for tonight.<br>
<br>
It would be wonderful if in /compiler/globals.pas, at line 906, you add this<br>
line (or something like that):<br>
<br>
{ Replace some macros }<br>
<br>
Replace(s,'$FPCPATH',AnsiString(IncludeTrailingBackslash(ExtractFilePath(ParamStr(0)))));<br>
<br>
So in fpc.cfg you may do:<br>
<br>
-Fu$FPCPATH/units/$fpctarget<br>
-Fu$FPCPATH/units/$fpctarget/*<br>
-Fu$FPCPATH/units/$fpctarget/rtl<br>
<br>
And it works like charm.<br>
<br>
@Jonas, I apologize, really, you kindly answered but I feel alone against a<br>
tribe of gurus who want to eat me.<br>
<br>
OK, I go to sleep (if I can).<br>
<br>
Fred<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://free-pascal-general.1045716.n5.nabble.com/">http://free-pascal-general.1045716.n5.nabble.com/</a><br>
_______________________________________________<br>
fpc-pascal maillist - fpc-pascal@lists.freepascal.org<br>
<a href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a><br>
</div>
</span></font></div>
</body>
</html>