freebsd-skq/usr.bin/svn/Makefile.inc
Ed Maste 33c1ce3b72 svn: support building with WITH_PIE
Subversion builds and links against its own .a archives using local
rules, so did not benefit from with the WITH_PIE library support added
in r344179.  Apply the same _pie suffix locally.

Reviewed by:	cem
Differential Revision:	https://reviews.freebsd.org/D19246
2019-02-21 15:08:25 +00:00

64 lines
2.1 KiB
Makefile

# $FreeBSD$
.include <src.opts.mk>
.if ${MK_SVN} == "yes"
SVNLITE?=
.else
SVNLITE?= lite
.endif
.if ${MK_PIE} != "no"
PIE_SUFFIX= _pie
.endif
PACKAGE= svn
.if !defined(SVNDIR)
SVNDIR= ${SRCTOP}/contrib/subversion/subversion
APRU= ${SRCTOP}/contrib/apr-util
APR= ${SRCTOP}/contrib/apr
WARNS?= 0 # definitely not warns friendly
.sinclude "${.CURDIR:H:H}/Makefile.inc"
LIBAPRDIR= ${.OBJDIR:H}/lib/libapr
LIBAPR_UTILDIR= ${.OBJDIR:H}/lib/libapr_util
LIBSERFDIR= ${.OBJDIR:H}/lib/libserf
LIBSVN_CLIENTDIR= ${.OBJDIR:H}/lib/libsvn_client
LIBSVN_DELTADIR= ${.OBJDIR:H}/lib/libsvn_delta
LIBSVN_DIFFDIR= ${.OBJDIR:H}/lib/libsvn_diff
LIBSVN_FSDIR= ${.OBJDIR:H}/lib/libsvn_fs
LIBSVN_FS_FSDIR= ${.OBJDIR:H}/lib/libsvn_fs_fs
LIBSVN_FS_UTILDIR= ${.OBJDIR:H}/lib/libsvn_fs_util
LIBSVN_FS_XDIR= ${.OBJDIR:H}/lib/libsvn_fs_x
LIBSVN_RADIR= ${.OBJDIR:H}/lib/libsvn_ra
LIBSVN_RA_LOCALDIR= ${.OBJDIR:H}/lib/libsvn_ra_local
LIBSVN_RA_SVNDIR= ${.OBJDIR:H}/lib/libsvn_ra_svn
LIBSVN_RA_SERFDIR= ${.OBJDIR:H}/lib/libsvn_ra_serf
LIBSVN_REPOSDIR= ${.OBJDIR:H}/lib/libsvn_repos
LIBSVN_SUBRDIR= ${.OBJDIR:H}/lib/libsvn_subr
LIBSVN_WCDIR= ${.OBJDIR:H}/lib/libsvn_wc
LIBAPR= ${LIBAPRDIR}/libapr${PIE_SUFFIX}.a
LIBAPR_UTIL= ${LIBAPR_UTILDIR}/libapr-util${PIE_SUFFIX}.a
LIBSERF= ${LIBSERFDIR}/libserf${PIE_SUFFIX}.a
LIBSVN_CLIENT= ${LIBSVN_CLIENTDIR}/libsvn_client${PIE_SUFFIX}.a
LIBSVN_DELTA= ${LIBSVN_DELTADIR}/libsvn_delta${PIE_SUFFIX}.a
LIBSVN_DIFF= ${LIBSVN_DIFFDIR}/libsvn_diff${PIE_SUFFIX}.a
LIBSVN_FS= ${LIBSVN_FSDIR}/libsvn_fs${PIE_SUFFIX}.a
LIBSVN_FS_FS= ${LIBSVN_FS_FSDIR}/libsvn_fs_fs${PIE_SUFFIX}.a
LIBSVN_FS_UTIL= ${LIBSVN_FS_UTILDIR}/libsvn_fs_util${PIE_SUFFIX}.a
LIBSVN_FS_X= ${LIBSVN_FS_XDIR}/libsvn_fs_x${PIE_SUFFIX}.a
LIBSVN_RA= ${LIBSVN_RADIR}/libsvn_ra${PIE_SUFFIX}.a
LIBSVN_RA_LOCAL= ${LIBSVN_RA_LOCALDIR}/libsvn_ra_local${PIE_SUFFIX}.a
LIBSVN_RA_SVN= ${LIBSVN_RA_SVNDIR}/libsvn_ra_svn${PIE_SUFFIX}.a
LIBSVN_RA_SERF= ${LIBSVN_RA_SERFDIR}/libsvn_ra_serf${PIE_SUFFIX}.a
LIBSVN_REPOS= ${LIBSVN_REPOSDIR}/libsvn_repos${PIE_SUFFIX}.a
LIBSVN_SUBR= ${LIBSVN_SUBRDIR}/libsvn_subr${PIE_SUFFIX}.a
LIBSVN_WC= ${LIBSVN_WCDIR}/libsvn_wc${PIE_SUFFIX}.a
.endif