Lines Matching +full:libbsd +full:- +full:dev

42 _XCODE_ROOT!=xcode-select -p
46 # Only command line tools installed -> host headers are in the SDKs directory
49 # Full XCode installed -> host headers are below Platforms/MacOSX.platform
54 .error You must install the macOS SDK (try xcode-select --install)
60 # Allow building libc-internal files (also on non-FreeBSD hosts)
61 CFLAGS+= -I${.CURDIR}/libc-bootstrap
62 # Symbol versioning is not required for -legacy (and macOS bootstrap)
65 _WITH_PWCACHEDB!= grep -c pwcache_groupdb ${HOST_INCLUDE_ROOT}/grp.h || true
67 .PATH: ${.CURDIR}/../../contrib/libc-pwcache
68 CFLAGS.pwcache.c+= -I${.CURDIR}/../../contrib/libc-pwcache
72 _WITH_STRSVIS!= grep -c strsvis ${HOST_INCLUDE_ROOT}/vis.h 2>/dev/null || true
74 .PATH: ${.CURDIR}/../../contrib/libc-vis
77 CFLAGS.vis.c+= -I${.CURDIR}/../../contrib/libc-vis -DHAVE_VIS=0 -DHAVE_SVIS=0
78 CFLAGS.unvis.c+= -I${.CURDIR}/../../contrib/libc-vis -DHAVE_VIS=0 -DHAVE_SVIS=0
81 _WITH_REALLOCARRAY!= grep -c reallocarray ${HOST_INCLUDE_ROOT}/stdlib.h || true
89 _WITH_UTIMENS!= grep -c utimensat ${HOST_INCLUDE_ROOT}/sys/stat.h || true
98 _WITH_EXPLICIT_BZERO!= cat ${HOST_INCLUDE_ROOT}/strings.h ${HOST_INCLUDE_ROOT}/string.h | grep -c e…
101 # Adding sys/libkern to .PATH breaks building the cross-build compat library
112 _WITH_FSPACECTL!= grep -c fspacectl ${HOST_INCLUDE_ROOT}/fcntl.h || true
119 _WITH_CAPH_ENTER!= grep -c caph_enter ${HOST_INCLUDE_ROOT}/capsicum_helpers.h || true
120 _WITH_CAPH_RIGHTS_LIMIT!= grep -c caph_rights_limit ${HOST_INCLUDE_ROOT}/capsicum_helpers.h || true
130 # This is especially important on non-FreeBSD systems where the types may
180 # macOS's bitstring lacks FreeBSD-specific additions used by makefs's ZFS code
187 .PATH: ${.CURDIR}/cross-build
193 # bootstrap the FreeBSD db code. The cross-build headers #define dbopen() to
222 _WITH_EXPLICIT_STRLCPY!= cat ${HOST_INCLUDE_ROOT}/strings.h ${HOST_INCLUDE_ROOT}/string.h | grep -c…
228 # Compile the fgetln/fgetwln/closefrom fallback code from libbsd:
230 CFLAGS.closefrom.c+= -DSTDC_HEADERS -DHAVE_SYS_DIR_H -DHAVE_DIRENT_H \
231 -DHAVE_DIRFD -DHAVE_SYSCONF
240 # macOS has a standalone cross-build implementation, but Linux can use the same
252 CFLAGS.arc4random.c+= -I${SRCTOP}/sys/crypto/chacha20 -D__isthreaded=1
325 INCS+= ${SRCTOP}/crypto/krb5/src/util/verto/verto-module.h
334 SUBDIR= cross-build
337 # To allow bootstrapping makefs on FreeBSD 11 or non-FreeBSD systems:
392 # from the FreeBSD sources during the bootstrap-tools stage.
407 _LINK_HOST_TOOL= ln -sfn
413 _COPY_HOST_TOOL= cp -pf
416 # tools to another directory with cp -p results in freezes on macOS Big Sur for
432 # We also need to symlink any non-absolute toolchain commands. Clang finds its
444 _WRAP_HOST_TOOL= sh -c "printf '\#!/bin/sh\nexec \"\%s\" \"\$$@\"\n' \"\$$0\" > \"\$$1\" && chmod +…
457 host-symlinks:
461 source_path=`which ${_tool} || echo /dev/null/no/such`; \
462 if [ ! -e "$${source_path}" ] ; then \
465 rm -f "${DESTDIR}/bin/${_tool}"; \
471 if [ ! -e "$${source_path}" ] ; then \
474 rm -f "$${target_path}"; \
478 rm -f ${DESTDIR}/usr/libexec/flua
483 source_path=`which ${_tool} || echo /dev/null/no/such`; \
484 if [ ! -e "$${source_path}" ] ; then \
487 rm -f "${DESTDIR}/bin/${_tool}"; \
491 # Create all the directories that are needed during the legacy, bootstrap-tools
492 # and cross-tools stages. We do this here using mkdir since mtree may not exist
505 mkdir -p ${INSTALLDIR_LIST:S,^,${DESTDIR}/,}
509 # bootstrap-tools phase. We could also overrride BINDIR when building bootstrap
515 @if [ -e ${DESTDIR}/${_dir} ] && [ ! -L ${DESTDIR}/${_dir} ]; then \
516 echo "removing old non-symlink ${DESTDIR}/${_dir}"; \
517 rm -rf "${DESTDIR}/${_dir}"; \
520 ln -sfn bin ${DESTDIR}/sbin
521 ln -sfn ../bin ${DESTDIR}/usr/bin
522 ln -sfn ../bin ${DESTDIR}/usr/sbin
524 mkdir -p "${DESTDIR}/${${_group}DIR}"