864c53ead8
This is currently an opt-in build flag. Once ASLR support is ready and stable it should changed to opt-out and be enabled by default along with ASLR. Each application Makefile uses opt-out to ensure that ASLR will be enabled by default in new directories when the system is compiled with PIE/ASLR. [2] Mark known build failures as NO_PIE for now. The only known runtime failure was rtld. [1] http://www.bsdcan.org/2014/schedule/events/452.en.html Submitted by: Shawn Webb <lattera@gmail.com> Discussed between: des@ and Shawn Webb [2]
29 lines
612 B
Makefile
29 lines
612 B
Makefile
# $FreeBSD$
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
.PATH: ${.CURDIR}/../../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
|
|
LDADD+= -lmd -lutil
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../contrib/mknod
|
|
.PATH: ${.CURDIR}/../../contrib/mknod
|
|
SRCS+= pack_dev.c
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../lib/libnetbsd
|
|
LIBNETBSDDIR= ${.OBJDIR}/../../lib/libnetbsd
|
|
LIBNETBSD= ${LIBNETBSDDIR}/libnetbsd.a
|
|
DPADD+= ${LIBNETBSD}
|
|
LDADD+= ${LIBNETBSD}
|
|
|
|
LINKS= ${BINDIR}/mtree ${BINDIR}/nmtree
|
|
MLINKS= mtree.8 nmtree.8
|
|
|
|
NO_PIE= yes
|
|
|
|
.include <bsd.prog.mk>
|