1 diff --git a/tools/build/Makefile b/tools/build/Makefile
2 index 948a5f9dfdb..592af84eeae 100644
3 --- a/tools/build/Makefile
4 +++ b/tools/build/Makefile
5 @@ -327,14 +327,14 @@ host-symlinks:
6 # and cross-tools stages. We do this here using mkdir since mtree may not exist
7 # yet (this happens if we are crossbuilding from Linux/Mac).
11 - usr/include/casper \
12 - usr/include/private/ucl \
13 - usr/include/private/zstd \
15 - usr/libdata/pkgconfig \
19 + ${INCLUDEDIR}/casper \
20 + ${INCLUDEDIR}/private/ucl \
21 + ${INCLUDEDIR}/private/zstd \
23 + ${LIBDIR}/libdata/pkgconfig \
27 mkdir -p ${INSTALLDIR_LIST:S,^,${DESTDIR}/,}
28 @@ -352,9 +352,9 @@ installdirs:
29 rm -rf "${DESTDIR}/${_dir}"; \
32 - ln -sfn bin ${DESTDIR}/sbin
33 - ln -sfn ../bin ${DESTDIR}/usr/bin
34 - ln -sfn ../bin ${DESTDIR}/usr/sbin
35 + ln -sfn bin ${DESTDIR}/${SBINDIR}
36 + ln -sfn ../bin ${DESTDIR}/${BINDIR}
37 + ln -sfn ../bin ${DESTDIR}/${SBINDIR}
38 .for _group in ${INCSGROUPS:NINCS}
39 mkdir -p "${DESTDIR}/${${_group}DIR}"