Bryan Drewery 864c53ead8 In preparation for ASLR [1] support add WITH_PIE to support building with -fPIE.
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]
2014-06-08 17:29:31 +00:00

51 lines
1.4 KiB
Makefile

# $FreeBSD$
MAN=
.include "${.CURDIR}/../Makefile.inc"
.PATH: ${SVNDIR}/svnrdump
PROG= svn${SVNLITE}rdump
SRCS= dump_editor.c load_editor.c svnrdump.c util.c
CFLAGS+=-I${SVNDIR}/include -I${SVNDIR} -I${.CURDIR}/.. \
-I${.CURDIR}/../lib/libapr \
-I${APR}/include/arch/unix \
-I${APR}/include \
-I${.CURDIR}/../lib/libapr_util \
-I${APRU}/include/private \
-I${APRU}/include
LDADD= -L${LIBSVN_CLIENTDIR} -lsvn_client \
-L${LIBSVN_WCDIR} -lsvn_wc \
-L${LIBSVN_RADIR} -lsvn_ra \
-L${LIBSVN_RA_LOCALDIR} -lsvn_ra_local \
-L${LIBSVN_RA_SVNDIR} -lsvn_ra_svn \
-L${LIBSVN_RA_SERFDIR} -lsvn_ra_serf \
-L${LIBSVN_REPOSDIR} -lsvn_repos \
-L${LIBSVN_FSDIR} -lsvn_fs \
-L${LIBSVN_FS_FSDIR} -lsvn_fs_fs \
-L${LIBSVN_FS_UTILDIR} -lsvn_fs_util \
-L${LIBSVN_DELTADIR} -lsvn_delta \
-L${LIBSVN_DIFFDIR} -lsvn_diff \
-L${LIBSVN_SUBRDIR} -lsvn_subr \
-L${LIBSERFDIR} -lserf \
-L${LIBAPR_UTILDIR} -lapr-util \
-lbsdxml \
-L${LIBAPRDIR} -lapr \
-L${LIBSQLITEDIR} -lsqlite3 \
-lz -lcrypt -lmagic -lcrypto -lssl -lpthread
DPADD= ${LIBSVN_CLIENT} ${LIBSVN_WC} ${LIBSVN_RA} ${LIBSVN_RA_LOCAL} \
${LIBSVN_RA_SVN} ${LIBSVN_RA_SERF} ${LIBSVN_REPOS} \
${LIBSVN_FS} ${LIBSVN_FS_FS} ${LIBSVN_FS_UTIL} ${LIBSVN_DELTA} \
${LIBSVN_DIFF} ${LIBSVN_SUBR} ${LIBSERF} ${LIBAPR_UTIL} \
${LIBBSDXML} ${LIBAPR} ${LIBSQLITE} ${LIBZ} ${LIBCRYPT} ${LIBMAGIC} \
${LIBCRYPTO} ${LIBSSL} ${LIBPTHREAD}
NO_PIE= yes
.include <bsd.prog.mk>