View | Details | Raw Unified | Return to bug 169579 | Differences between
and this patch

Collapse All | Expand All

(-)bsd.port.mk (+22 lines)
Lines 942-947 Link Here
942
#				  that are explicitly marked MAKE_JOBS_UNSAFE.  User settable.
942
#				  that are explicitly marked MAKE_JOBS_UNSAFE.  User settable.
943
# MAKE_JOBS_NUMBER
943
# MAKE_JOBS_NUMBER
944
#				- Override the number of make jobs to be used.  User settable.
944
#				- Override the number of make jobs to be used.  User settable.
945
## cacche
946
#
947
# WITH_CCACHE_BUILD
948
# 				- Enable CCACHE support (devel/ccache)
949
# CCACHE_DIR
950
# 				- Directory to use for ccache objects
951
# 				  Default: /usr/obj/ccache
945
#
952
#
946
# For install:
953
# For install:
947
#
954
#
Lines 2208-2213 Link Here
2208
.endif
2215
.endif
2209
.endif
2216
.endif
2210
2217
2218
# ccache support
2219
# Support NO_CCACHE for common setups, require WITH_CCACHE_BUILD, and don't use if ccache already set in CC
2220
.if !defined(NO_CCACHE) && defined(WITH_CCACHE_BUILD) && !${CC:M*ccache*}
2221
CCACHE_DIR?=	/usr/obj/ccache
2222
2223
# Avoid depends loops between pkg and ccache
2224
.	if !${.CURDIR:M*/devel/ccache} && !${.CURDIR:M*/ports-mgmt/pkg}
2225
BUILD_DEPENDS+=		${LOCALBASE}/bin/ccache:${PORTSDIR}/devel/ccache
2226
.	endif
2227
2228
# Prepend the ccache dir into the PATH and setup ccache env
2229
MAKE_ENV+=	PATH=${LOCALBASE}/libexec/ccache/world:${PATH} \
2230
			CCACHE_DIR=${CCACHE_DIR}
2231
.endif
2232
2211
PTHREAD_CFLAGS?=
2233
PTHREAD_CFLAGS?=
2212
PTHREAD_LIBS?=		-pthread
2234
PTHREAD_LIBS?=		-pthread
2213
2235

Return to bug 169579