<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Thank you your suggestions Mattias.<br>
If I'm not wrong, our result is same just way is little bit
different.<br>
I don't like copy file every where, Examp. <i
class="moz-txt-slash"><span class="moz-txt-tag"><br>
my fpc and lazarus folders, under /opt/. fpc use this "/</span>usr/lib/fpc<span
class="moz-txt-tag">/</span></i>$fpcversion/units/$fpctarget/*"
folder so copy files there. Same way, for binnary ppcxxx files copy
to for /bin/ I prefer, make symbolic link, 'cos for remove or some
time upgrade application (not just fpc & laz) need copy where to
copied before, have to remember, but if its link can find easy,
never mind this is how to use to.<br>
<br>
in my script like this:<br>
make -s clean all install INSTALL_PREFIX=$prefixVolume$fpc_prefix
CPU_TARGET=$CPU_TARGET<br>
after maked and add link to system<br>
sudo ln -sf $prefixVolume$fpc_prefix"/share/doc/fpc-"$svnVer
/usr/share/doc/fpc-"$svnVer"<br>
sudo ln -sf $prefixVolume$fpc_prefix"/lib/fpc/" /usr/lib/<br>
sudo ln -sf $prefixVolume$fpc_prefix"/bin/bin2obj" /bin -->
here add other all files, I wrote one for example.<br>
<br>
after then run this command:<br>
sudo /usr/lib/fpc/"$svnVer"/samplecfg /usr/lib/fpc/"$svnVer"/
/private/etc<br>
<br>
and this lines in created fpc.cfg,<br>
# searchpath for units and other system dependent things<br>
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget<br>
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/*<br>
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/rtl<br>
<br>
sometime I run make command 10 times in day, maybe more. remove all
files and rerun make command. I love my ssd :) so I add to my script
"$prefixVolume" variable. This is for ram drive path, so all make
job read write in ramdrive, so my ssd live not decrease. <br>
<br>
<br>
<div class="moz-cite-prefix">On 24.02.2015 13:14, Mattias Gaertner
wrote:<br>
</div>
<blockquote cite="mid:20150224121415.6c4d50b8@limapholos.matflo.wg"
type="cite">
<pre wrap="">You combined FPC sources (/Volumes/ram_disk/opt/freepascal/3.1.1)
with the FPC installation (/Volumes/ram_disk/opt/freepascal/3.1.1).
Although this is possible, it makes it harder to spot
misconfigurations, so it is not recommended.
If you are not an expert, do what all others do: Use different
directories. For example
make distclean all install INSTALL_PREFIX=<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>Volumes/ram_disk<span class="moz-txt-tag">/</span></i>
CPU_TARGET=x86_64
This creates the files under
/Volumes/ram_disk/lib/fpc/3.1.1/units/x86_64-darwin
Don't forget to remove /Volumes/ram_disk/opt/freepascal/3.1.1/lib.
And then add to your /etc/fpc.cfg
-Fu/Volumes/ram_disk/lib/fpc/$fpcversion/units/$fpctarget/*.
After that click in the IDE menu Tools / Rescan FPC source directory.
Mattias</pre>
</blockquote>
<br>
</body>
</html>