mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 12:49:33 +02:00
* define Unix for Linux 1.0 compilers
This commit is contained in:
parent
5ac2599649
commit
b52915a0ca
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user