From 3ab8ddb755524325336607e8c1ceb7882723271c Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sun, 20 Mar 2022 17:46:44 +0100 Subject: [PATCH 299/310] tools/build/Makefile: Add ElectroBSD support Obtained from: ElectroBSD --- tools/build/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/build/Makefile b/tools/build/Makefile index 746f294aafba..3286b8aea93f 100644 --- a/tools/build/Makefile +++ b/tools/build/Makefile @@ -141,7 +141,7 @@ SYSINCS+= ${SRCTOP}/sys/sys/imgact_aout.h SYSINCS+= ${SRCTOP}/sys/sys/nlist_aout.h -.if ${.MAKE.OS} != "FreeBSD" +.if ${.MAKE.OS} != "FreeBSD" && ${.MAKE.OS} != "ElectroBSD" .PATH: ${.CURDIR}/cross-build # dbopen() behaves differently on Linux and FreeBSD so we ensure that we # bootstrap the FreeBSD db code. The cross-build headers #define dbopen() to @@ -276,7 +276,7 @@ _host_tools_to_symlink= basename bzip2 bunzip2 chmod chown cmp comm cp date dd \ _make_abs!= which "${MAKE}" _host_abs_tools_to_symlink= ${_make_abs}:make ${_make_abs}:bmake -.if ${.MAKE.OS} == "FreeBSD" +.if ${.MAKE.OS} == "FreeBSD" || ${.MAKE.OS} == "ElectroBSD" # When building on FreeBSD we always copy the host tools instead of linking # into WORLDTMP to avoid issues with incompatible libraries (see r364030). # Note: we could create links if we don't intend to update the current machine. -- 2.37.1