Generalize -DD option outside cycle

Add -DD option to LOCALOPT
  if FPC_VERSION is equal to PACKAGE_VERSION

  This is to avoid get different dates for
native compiler generated using 'make cycle'
versus cross-compilers.
This commit is contained in:
Pierre Muller 2023-09-28 11:18:57 +02:00
parent c69bfcace2
commit c335591b70

View File

@ -235,6 +235,12 @@ override RTLOPT+=$(RTLOPTLEVEL4)
override LOCALOPT+=$(OPTNEW)
override RTLOPT+=$(OPTNEW)
endif
else
ifdef COMPDATESTR
ifeq ($(FPC_VERSION),$(PACKAGE_VERSION))
override LOCALOPT+=-DD$(COMPDATESTR)
endif
endif
endif
# Make OPT empty. It is copied to LOCALOPT and RTLOPT