1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-12 09:58:36 +00:00
freebsd/usr.sbin/nmtree/Makefile
Alex Richardson c4bd82d701 Allow bootstrapping mtree on Linux systems
Linux glibc has a dummy lchmod that always fails and emitting a linker
warning when used. Don't fail the build due to that warning when
bootstrapping by setting LD_FATAL_WARNINGS=no.

Reviewed By:	brooks, emaste
Differential Revision: https://reviews.freebsd.org/D25930
2020-08-03 18:08:10 +00:00

32 lines
648 B
Makefile

# $FreeBSD$
.include <src.opts.mk>
.PATH: ${SRCTOP}/contrib/mtree
PROG= mtree
MAN= mtree.5 mtree.8
SRCS= compare.c crc.c create.c excludes.c getid.c misc.c mtree.c \
only.c spec.c specspec.c verify.c
CFLAGS+= -I${SRCTOP}/contrib/mknod
.PATH: ${SRCTOP}/contrib/mknod
SRCS+= pack_dev.c
CFLAGS+= -I${SRCTOP}/lib/libnetbsd
LIBADD= netbsd md util
LINKS= ${BINDIR}/mtree ${BINDIR}/nmtree
MLINKS= mtree.8 nmtree.8
HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.if defined(BOOTSTRAPPING)
# Linux glibc has a dummy lchmod that always fails. Don't fail due to
# the linker warning that it emits.
LD_FATAL_WARNINGS=no
.endif
.include <bsd.prog.mk>