if (${MKGCC} != "no")
SUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libgcc .WAIT
endif
SUBDIR+= libc
SUBDIR+= .WAIT
#
# The SUBDIRs above are included here for completeness but should be built
# and installed prior to make(dependall) in this file, as libraries listed
# below will depend on versions from DESTDIR only.
#
if (${MKGCC} != "no")
SUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libobjc
SUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libgomp
endif
# GCC and GDB >= 13 require GMP.
# We don't build compat versions of these
if !defined(MLIBDIR) && (${MKGCCCMDS} != "no" || ${MKGDB} != "no")
SUBDIR+= ../external/lgpl3/mpfr/lib/libmpfr
SUBDIR+= ../external/lgpl3/mpc/lib/libmpc
SUBDIR+= ../external/lgpl3/gmp/lib/libgmp
endif
#
# Libraries that depend upon any listed previously
# (and those that depend upon these [and ...])
#
#==================== 1st library dependency barrier ====================
SUBDIR+= .WAIT
if ${MKDTRACE} != "no"
SUBDIR+= ../external/bsd/librtld_db/lib # depends on libutil
endif
if ${MKCTF} != "no"
SUBDIR+= ../external/cddl/osnet/lib/libctf
endif
SUBDIR+= ../external/public-domain/xz/lib # depends on libpthread
SUBDIR+= ../crypto/external/bsd/netpgp/libmj
SUBDIR+= ../crypto/external/bsd/netpgp/lib/verify # depends on libz
SUBDIR+= ../external/bsd/blocklist/lib # depends on libpthread
SUBDIR+= ../external/mit/lua/lib # depends on libm
SUBDIR+= ../external/public-domain/sqlite/lib # depends on libm
SUBDIR+= libcurses # depends on libterminfo
SUBDIR+= libdm # depends on libprop
SUBDIR+= libedit # depends on libterminfo
SUBDIR+= libexecinfo # depends on libelf
SUBDIR+= libppath # depends on libprop
SUBDIR+= libperfuse # depends on libpuffs
SUBDIR+= libquota # depends on libprop and librpcsvc
SUBDIR+= librefuse # depends on libpuffs
SUBDIR+= libisns # depends on libpthread
if (${MKRUMP} != "no")
SUBDIR+= librumphijack # depends on librumpclient and libpthread
SUBDIR+= librumpres # depends on librumpclient
SUBDIR+= librumpuser # depends on libpthread
endif
if (${MKNPF} != "no")
SUBDIR+= libnpf # depends on libnv
endif
OSSL=../crypto/external/${EXTERNAL_OPENSSL_SUBDIR}/lib/
include "${.CURDIR}/${OSSL}Makefile.subdir" # depends on libcrypt
if (${MKISCSI} != "no")
SUBDIR+= ../external/bsd/iscsi/lib # depends on libpthread
endif
if (${MKZFS} != "no")
SUBDIR+= ../external/cddl/osnet/lib/libzfs_core
SUBDIR+= ../external/cddl/osnet/lib/libzpool
endif
if (${MKLVM} != "no")
SUBDIR+= ../external/gpl2/lvm2/lib # depends on libprop
endif
if (${MKBINUTILS} != "no")
SUBDIR+= ../external/gpl3/${EXTERNAL_BINUTILS_SUBDIR}/lib # libbfd depends on libz
endif
if (${MKLIBCXX} != "no")
SUBDIR+= ../external/bsd/libc++
endif
if (${MKGCC} != "no" && ${MKCXX} != "no" && ${MKLIBSTDCXX} != "no")
if ${MKGCCCMDS} != "no"
for sanitizer in asan lsan ubsan
if exists(../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/lib${sanitizer})
SUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/lib${sanitizer}
endif
endfor
endif
endif