From b25d9014df8e60e2a84fb62cfe125bc34f5a00da Mon Sep 17 00:00:00 2001 From: pierre Date: Tue, 27 Oct 2020 23:10:37 +0000 Subject: [PATCH] Default to add -dFPC_USE_LIBC for OpenBSD OS (can be disabled by setting FPC_USE_SYSCALL=1) git-svn-id: trunk@47228 - --- rtl/openbsd/Makefile | 3 +++ rtl/openbsd/Makefile.fpc | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/rtl/openbsd/Makefile b/rtl/openbsd/Makefile index 221a927d8d..fa82873850 100644 --- a/rtl/openbsd/Makefile +++ b/rtl/openbsd/Makefile @@ -364,6 +364,9 @@ PRT0=prt0 ifdef RELEASE override FPCOPT+=-Ur endif +ifeq ($(FPC_USE_SYSCALL),) +override FPCOPT+=-dFPC_USE_LIBC +endif CPU_UNITS= SYSINIT_UNITS=si_prc si_c si_dll si_g LOADERS=prt0 diff --git a/rtl/openbsd/Makefile.fpc b/rtl/openbsd/Makefile.fpc index 230f80a1cb..6293532e63 100644 --- a/rtl/openbsd/Makefile.fpc +++ b/rtl/openbsd/Makefile.fpc @@ -76,6 +76,11 @@ ifdef RELEASE override FPCOPT+=-Ur endif +# OpenBSD defaults to libc, no syscalls +ifeq ($(FPC_USE_SYSCALL),) +override FPCOPT+=-dFPC_USE_LIBC +endif + CPU_UNITS= SYSINIT_UNITS=si_prc si_c si_dll si_g