Browse Source

Add SYSTEMDIR variable (needed for BSD OSes)

Pierre Muller 1 year ago
parent
commit
b9544ad342
1 changed files with 5 additions and 1 deletions
  1. 5 1
      rtl/inc/Makefile.rtl

+ 5 - 1
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