* define Unix for Linux 1.0 compilers

This commit is contained in:
peter 2000-11-12 22:34:01 +00:00
parent 5ac2599649
commit b52915a0ca
2 changed files with 14 additions and 0 deletions

View File

@ -109,6 +109,13 @@ export FPC OS_TARGET OS_SOURCE CPU_TARGET CPU_SOURCE FPC_VERSION
# Pre Settings
#####################################################################
# Define Unix also for Linux
ifeq ($(OS_TARGET),linux)
ifneq ($(findstring 1.0.,$(FPC_VERSION)),)
override FPCOPT+=-dUNIX
endif
endif
# Don't export OS_SOURCE because it can change after the first compile
unexport OS_SOURCE FPC_VERSION

View File

@ -24,6 +24,13 @@ toolupx=1
[presettings]
# Define Unix also for Linux
ifeq ($(OS_TARGET),linux)
ifneq ($(findstring 1.0.,$(FPC_VERSION)),)
override FPCOPT+=-dUNIX
endif
endif
# Don't export OS_SOURCE because it can change after the first compile
unexport OS_SOURCE FPC_VERSION