mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 14:49:16 +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
|
# 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
|
# Don't export OS_SOURCE because it can change after the first compile
|
||||||
unexport OS_SOURCE FPC_VERSION
|
unexport OS_SOURCE FPC_VERSION
|
||||||
|
|
||||||
|
@ -24,6 +24,13 @@ toolupx=1
|
|||||||
|
|
||||||
|
|
||||||
[presettings]
|
[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
|
# Don't export OS_SOURCE because it can change after the first compile
|
||||||
unexport OS_SOURCE FPC_VERSION
|
unexport OS_SOURCE FPC_VERSION
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user