From b9544ad342cbd1146b8518cf142caaa8f2f95b2a Mon Sep 17 00:00:00 2001 From: Pierre Muller Date: Thu, 28 Sep 2023 22:55:47 +0200 Subject: [PATCH] Add SYSTEMDIR variable (needed for BSD OSes) --- rtl/inc/Makefile.rtl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rtl/inc/Makefile.rtl b/rtl/inc/Makefile.rtl index e548a5fdbf..1e91e6ae0a 100644 --- a/rtl/inc/Makefile.rtl +++ b/rtl/inc/Makefile.rtl @@ -594,6 +594,10 @@ ifndef NSSYSUTILSDIR NSSYSUTILSDIR=$(NSDIR)/$(SYSUTILSDIR) endif +ifndef SYSTEMDIR +SYSTEMDIR=$(OSDIR) +endif + ifndef CLASSESDIR CLASSESDIR=$(OSDIR) endif @@ -674,7 +678,7 @@ endif # System -$(SYSTEMUNIT)$(PPUEXT) : $(SYSTEMUNIT).$(SYSTEMUNITEXT) $(SYSDEPS) +$(SYSTEMUNIT)$(PPUEXT) : $(SYSTEMDIR)/$(SYSTEMUNIT).$(SYSTEMUNITEXT) $(SYSDEPS) $(COMPILER) $(FPC_SYSTEM_OPT) -Us -Sg $< # uuchar