summaryrefslogtreecommitdiff
path: root/rtl
diff options
context:
space:
mode:
authorpierre <pierre@3ad0048d-3df7-0310-abae-a5850022a9f2>2020-12-31 13:55:31 +0000
committerpierre <pierre@3ad0048d-3df7-0310-abae-a5850022a9f2>2020-12-31 13:55:31 +0000
commit5e3e4c4723fa4979e93ab79bf6eab67d9f8b7c5b (patch)
treecce89e8cbe04155272c3f629f4e3a8ba439e355e /rtl
parent7dd257e46acb0bee25364781dc2b2fed69718a84 (diff)
downloadfpc-5e3e4c4723fa4979e93ab79bf6eab67d9f8b7c5b.tar.gz
Merge of commit #47228
------------------------------------------------------------------------ r47228 | pierre | 2020-10-27 23:10:37 +0000 (Tue, 27 Oct 2020) | 1 line Default to add -dFPC_USE_LIBC for OpenBSD OS (can be disabled by setting FPC_USE_SYSCALL=1) ------------------------------------------------------------------------ --- Merging r47228 into '.': U rtl/openbsd/Makefile U rtl/openbsd/Makefile.fpc --- Recording mergeinfo for merge of r47228 into '.': U . git-svn-id: https://svn.freepascal.org/svn/fpc/branches/fixes_3_2@47924 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'rtl')
-rw-r--r--rtl/openbsd/Makefile3
-rw-r--r--rtl/openbsd/Makefile.fpc5
2 files changed, 8 insertions, 0 deletions
diff --git a/rtl/openbsd/Makefile b/rtl/openbsd/Makefile
index 4db01ae9dd..47de6ca852 100644
--- a/rtl/openbsd/Makefile
+++ b/rtl/openbsd/Makefile
@@ -346,6 +346,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 dc8aeb11d8..b7f6fcf994 100644
--- a/rtl/openbsd/Makefile.fpc
+++ b/rtl/openbsd/Makefile.fpc
@@ -75,6 +75,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