Hi,
using the fixes branch from this morning I try:
OS_TARGET=freebsd gmake all
which ends in:
ppc386 -dUNIX -dNOMOUSE -dNOGPM -Xs -OG2p3 -n -Fi../inc -Fi../i386 -Fi../unix -FE. -di386 -dRELEASE -I../objpas ../unix/sysutils.pp
fina.inc(101,11) Error: Identifier not found DOS
fina.inc(101,15) Error: Illegal qualifier
fina.inc(101,22) Fatal: Syntax error, ; expected but ( found
gmake[4]: *** [sysutils.ppu] Error 1
gmake[4]: Leaving directory `/usr/home/asmodai/software/fpc/fpc-test/rtl/freebsd'Which is logical, hasunix is not set, so fina.inc skips to the DOS part of the code.
I guess hasunix in the ifdef part of fina.inc checks the -dHASUNIX passed to fpc.
In rtl/freebsd/Makefile I don't get this:
ifeq ($(findstring 1.0.2,$(FPC_VERSION)),)
ifeq ($(findstring 1.0.4,$(FPC_VERSION)),)
override FPCOPT+=-Ur
endif
endif
1.0.4 has no -Ur, so I wonder, can this be stripped?
Furthermore, can:
SYSTEMUNIT=sysbsd
LINUXUNIT=linux
override FPCOPT+=-dUNIX -dNOMOUSE -dNOGPM
PRT0=prt0
OBJPASDIR=$(RTL)/objpas
be changed to:
SYSTEMUNIT=sysbsd
LINUXUNIT=linux
override FPCOPT+=-dHASUNIX -dUNIX -dNOMOUSE -dNOGPM PRT0=prt0
OBJPASDIR=$(RTL)/objpas
That at least allows me to compile rtl/freebsd. But I think something fundamental is not being set.
Also, why UNIX and HASUNIX? What is the difference between the two?
