989e2c6000
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]
44 lines
812 B
Makefile
44 lines
812 B
Makefile
# $FreeBSD$
|
|
|
|
PROG= makefs
|
|
|
|
CFLAGS+=-I${.CURDIR}
|
|
|
|
SRCS= cd9660.c ffs.c \
|
|
makefs.c \
|
|
mtree.c \
|
|
walk.c
|
|
MAN= makefs.8
|
|
|
|
WARNS?= 2
|
|
|
|
.include "${.CURDIR}/cd9660/Makefile.inc"
|
|
.include "${.CURDIR}/ffs/Makefile.inc"
|
|
|
|
CFLAGS+=-DHAVE_STRUCT_STAT_ST_FLAGS=1
|
|
CFLAGS+=-DHAVE_STRUCT_STAT_ST_GEN=1
|
|
|
|
.PATH: ${.CURDIR}/../../contrib/mtree
|
|
CFLAGS+=-I${.CURDIR}/../../contrib/mtree
|
|
SRCS+= getid.c misc.c spec.c
|
|
|
|
.PATH: ${.CURDIR}/../../contrib/mknod
|
|
CFLAGS+=-I${.CURDIR}/../../contrib/mknod
|
|
SRCS+= pack_dev.c
|
|
|
|
.PATH: ${.CURDIR}/../../sys/ufs/ffs
|
|
SRCS+= ffs_tables.c
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../lib/libnetbsd
|
|
LIBNETBSDDIR= ${.OBJDIR}/../../lib/libnetbsd
|
|
LIBNETBSD= ${LIBNETBSDDIR}/libnetbsd.a
|
|
DPADD+= ${LIBNETBSD}
|
|
LDADD+= ${LIBNETBSD}
|
|
|
|
DPADD+= ${LIBSBUF} ${LIBUTIL}
|
|
LDADD+= -lsbuf -lutil
|
|
|
|
NO_PIE= yes
|
|
|
|
.include <bsd.prog.mk>
|