[fpc-pascal] Fpc make questions...

Bo Berglund bo.berglund at gmail.com
Fri Sep 11 21:51:40 CEST 2020


I am not very informed about how make works when building fpc
installations, I have just used commands I have gathered online and it
has worked...

Now I would like to know:
1) Does make clean inside the fpc source dir erase ALL of the binaries
produced by an earlier build inside that source tree?

2) If so, does these two versions of "make all" build for ARMv7 and
ARMv6 respecitively:
make all FPC=/home/pi/dev/ppcarm OPT="-dFPC_ARMHF"
make all FPC=/home/pi/dev/ppcarm OPT="-dFPC_ARMHF -CpARMV6 -OpARMV6"

3) Does the following command overwrite existing files from an earlier
attempt so the CPU target can be replaced?
For ARMv7:
make install OPT="-dFPC_ARMHF" PREFIX=/home/pi
FPC="/home/pi/dev/ppcarm"
For ARMv6:
make install OPT="-dFPC_ARMHF -CpARMV6 -OpARMV6" PREFIX=/home/pi
FPC="/home/pi/dev/ppcarm"

4) Do I also need to switch the seed compiler /home/pi/dev/ppcarm
(3.0.4) between v6 and v7 or can any of the two work to build
correctly fpc itself?

The reason I am asking is that I need to switch my system from
building ARMv7 binaries to build ARMv6 binaries and I don't want to
start over from scratch on this RPi, which I have used for some
time...

Hopefully

make clean
make all
make install

with the proper options will do the trick....
TIA..


-- 
Bo Berglund
Developer in Sweden



More information about the fpc-pascal mailing list