Lines Matching +full:- +full:- +full:cross +full:- +full:bindir

23 _XCODE_ROOT!=xcode-select -p
27 # Only command line tools installed -> host headers are in the SDKs directory
30 # Full XCode installed -> host headers are below Platforms/MacOSX.platform
35 .error You must install the macOS SDK (try xcode-select --install)
41 # Allow building libc-internal files (also on non-FreeBSD hosts)
42 CFLAGS+= -I${.CURDIR}/libc-bootstrap
43 # Symbol versioning is not required for -legacy (and macOS bootstrap)
46 _WITH_PWCACHEDB!= grep -c pwcache_groupdb ${HOST_INCLUDE_ROOT}/grp.h || true
48 .PATH: ${.CURDIR}/../../contrib/libc-pwcache
49 CFLAGS.pwcache.c+= -I${.CURDIR}/../../contrib/libc-pwcache
53 _WITH_STRSVIS!= grep -c strsvis ${HOST_INCLUDE_ROOT}/vis.h 2>/dev/null || true
55 .PATH: ${.CURDIR}/../../contrib/libc-vis
58 CFLAGS.vis.c+= -I${.CURDIR}/../../contrib/libc-vis -DHAVE_VIS=0 -DHAVE_SVIS=0
59 CFLAGS.unvis.c+= -I${.CURDIR}/../../contrib/libc-vis -DHAVE_VIS=0 -DHAVE_SVIS=0
62 _WITH_REALLOCARRAY!= grep -c reallocarray ${HOST_INCLUDE_ROOT}/stdlib.h || true
70 _WITH_UTIMENS!= grep -c utimensat ${HOST_INCLUDE_ROOT}/sys/stat.h || true
79 _WITH_EXPLICIT_BZERO!= cat ${HOST_INCLUDE_ROOT}/strings.h ${HOST_INCLUDE_ROOT}/string.h | grep -c e…
82 # Adding sys/libkern to .PATH breaks building the cross-build compat library
93 _WITH_FSPACECTL!= grep -c fspacectl ${HOST_INCLUDE_ROOT}/fcntl.h || true
100 _WITH_CAPH_ENTER!= grep -c caph_enter ${HOST_INCLUDE_ROOT}/capsicum_helpers.h || true
101 _WITH_CAPH_RIGHTS_LIMIT!= grep -c caph_rights_limit ${HOST_INCLUDE_ROOT}/capsicum_helpers.h || true
111 # This is especially important on non-FreeBSD systems where the types may
161 # macOS's bitstring lacks FreeBSD-specific additions used by makefs's ZFS code
168 .PATH: ${.CURDIR}/cross-build
174 # bootstrap the FreeBSD db code. The cross-build headers #define dbopen() to
203 _WITH_EXPLICIT_STRLCPY!= cat ${HOST_INCLUDE_ROOT}/strings.h ${HOST_INCLUDE_ROOT}/string.h | grep -c…
211 CFLAGS.closefrom.c+= -DSTDC_HEADERS -DHAVE_SYS_DIR_H -DHAVE_DIRENT_H \
212 -DHAVE_DIRFD -DHAVE_SYSCONF
221 # macOS has a standalone cross-build implementation, but Linux can use the same
233 CFLAGS.arc4random.c+= -I${SRCTOP}/sys/crypto/chacha20 -D__isthreaded=1
264 SUBDIR= cross-build
267 # To allow bootstrapping makefs on FreeBSD 11 or non-FreeBSD systems:
322 # from the FreeBSD sources during the bootstrap-tools stage.
337 _LINK_HOST_TOOL= ln -sfn
343 _COPY_HOST_TOOL= cp -pf
346 # tools to another directory with cp -p results in freezes on macOS Big Sur for
362 # We also need to symlink any non-absolute toolchain commands. Clang finds its
374 _WRAP_HOST_TOOL= sh -c "printf '\#!/bin/sh\nexec \"\%s\" \"\$$@\"\n' \"\$$0\" > \"\$$1\" && chmod +…
387 host-symlinks:
392 if [ ! -e "$${source_path}" ] ; then \
395 rm -f "${DESTDIR}/bin/${_tool}"; \
401 if [ ! -e "$${source_path}" ] ; then \
404 rm -f "$${target_path}"; \
408 rm -f ${DESTDIR}/usr/libexec/flua
414 if [ ! -e "$${source_path}" ] ; then \
417 rm -f "${DESTDIR}/bin/${_tool}"; \
421 # Create all the directories that are needed during the legacy, bootstrap-tools
422 # and cross-tools stages. We do this here using mkdir since mtree may not exist
435 mkdir -p ${INSTALLDIR_LIST:S,^,${DESTDIR}/,}
439 # bootstrap-tools phase. We could also overrride BINDIR when building bootstrap
445 @if [ -e ${DESTDIR}/${_dir} ] && [ ! -L ${DESTDIR}/${_dir} ]; then \
446 echo "removing old non-symlink ${DESTDIR}/${_dir}"; \
447 rm -rf "${DESTDIR}/${_dir}"; \
450 ln -sfn bin ${DESTDIR}/sbin
451 ln -sfn ../bin ${DESTDIR}/usr/bin
452 ln -sfn ../bin ${DESTDIR}/usr/sbin
454 mkdir -p "${DESTDIR}/${${_group}DIR}"