Add dependency on objpas unit for syscall unit compiled with -dFPC_USE_LIBC

This commit is contained in:
Pierre Muller 2024-01-06 17:06:48 +01:00
parent 7c9cf75418
commit 37ffd4051a
2 changed files with 10 additions and 0 deletions

View File

@ -907,6 +907,9 @@ else
SYSCALL_DEPS_OS=$(ARCH)/syscallh.inc $(ARCH)/sysnr.inc
endif
endif
ifneq ($(filter -dFPC_USE_LIBC,$(FPCOPT)),)
SYSCALL_DEPS_OS+=$(OBJPASUNITUNIT)$(PPUEXT)
endif
SYSUTILSDIR=$(UNIXINC)
SYSUTILS_DEPS_OS=$(SYSUTILS_UNIX_DEPS) $(LINUXUNIT)$(PPUEXT)
UNIX_DEPS_OS=$(SYSCALLUNIT)$(PPUEXT)

View File

@ -76,6 +76,13 @@ else
SYSCALL_DEPS_OS=$(ARCH)/syscallh.inc $(ARCH)/sysnr.inc
endif
endif
# syscall unit compiled with -dFPC_USE_LIBC
# required mode objfpc which adds a dependency to
# objpas unit
ifneq ($(filter -dFPC_USE_LIBC,$(FPCOPT)),)
SYSCALL_DEPS_OS+=$(OBJPASUNITUNIT)$(PPUEXT)
endif
SYSUTILSDIR=$(UNIXINC)
SYSUTILS_DEPS_OS=$(SYSUTILS_UNIX_DEPS) $(LINUXUNIT)$(PPUEXT)
UNIX_DEPS_OS=$(SYSCALLUNIT)$(PPUEXT)