Browse Source

Add -Fi option for dynlibs.inc directory to DYNLIBS_OPT in dynlibs unit rule

Pierre Muller 1 year ago
parent
commit
3c0e3b1a3f
1 changed files with 6 additions and 0 deletions
  1. 6 0
      rtl/inc/Makefile.rtl

+ 6 - 0
rtl/inc/Makefile.rtl

@@ -838,6 +838,12 @@ DYNLIBS_DEPS=$(INC)/dynlibs.pas $(DYNLIBSINCDIR)/dynlibs.inc \
              objpas$(PPUEXT) $(RTLCONSTSUNIT)$(PPUEXT) $(SYSUTILSUNIT)$(PPUEXT) \
              $(DYNLIBS_DEPS_OS) $(DYNLIBS_DEPS_CPU)
 
+ifdef DYNLIBSINCDIR
+  ifndef DYNLIBS_OPT
+    DYNLIBS_OPT=-Fi$(DYNLIBSINCDIR)
+  endif
+endif
+
 dynlibs$(PPUEXT) : $(DYNLIBS_DEPS)
 	$(COMPILER) $(DYNLIBS_OPT) $<