Browse Source

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: branches/fixes_3_2@47924 -

pierre 4 years ago
parent
commit
e935ab3983
2 changed files with 8 additions and 0 deletions
  1. 3 0
      rtl/openbsd/Makefile
  2. 5 0
      rtl/openbsd/Makefile.fpc

+ 3 - 0
rtl/openbsd/Makefile

@@ -346,6 +346,9 @@ PRT0=prt0
 ifdef RELEASE
 ifdef RELEASE
 override FPCOPT+=-Ur
 override FPCOPT+=-Ur
 endif
 endif
+ifeq ($(FPC_USE_SYSCALL),)
+override FPCOPT+=-dFPC_USE_LIBC
+endif
 CPU_UNITS=
 CPU_UNITS=
 SYSINIT_UNITS=si_prc si_c si_dll si_g
 SYSINIT_UNITS=si_prc si_c si_dll si_g
 LOADERS=prt0
 LOADERS=prt0

+ 5 - 0
rtl/openbsd/Makefile.fpc

@@ -75,6 +75,11 @@ ifdef RELEASE
 override FPCOPT+=-Ur
 override FPCOPT+=-Ur
 endif
 endif
 
 
+# OpenBSD defaults to libc, no syscalls
+ifeq ($(FPC_USE_SYSCALL),)
+override FPCOPT+=-dFPC_USE_LIBC
+endif
+
 CPU_UNITS=
 CPU_UNITS=
 SYSINIT_UNITS=si_prc si_c si_dll si_g
 SYSINIT_UNITS=si_prc si_c si_dll si_g