diff --git a/compiler/Makefile.fpc b/compiler/Makefile.fpc index 53f071ef5f..119db27421 100644 --- a/compiler/Makefile.fpc +++ b/compiler/Makefile.fpc @@ -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