Date: Mon, 18 Nov 2013 19:48:22 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r334256 - head/Mk Message-ID: <201311181948.rAIJmMHj046925@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eadler Date: Mon Nov 18 19:48:21 2013 New Revision: 334256 URL: http://svnweb.freebsd.org/changeset/ports/334256 Log: Add the ability to build specific ports with WITH_DEBUG Reviewed by: Ilya A. Arkhipov <rum1cro@yandex.ru> Reviewed by: bsam Approved by: portmgr (bapt) Modified: head/Mk/bsd.port.mk Modified: head/Mk/bsd.port.mk ============================================================================== --- head/Mk/bsd.port.mk Mon Nov 18 19:35:09 2013 (r334255) +++ head/Mk/bsd.port.mk Mon Nov 18 19:48:21 2013 (r334256) @@ -311,6 +311,8 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org # passed to the compiler by setting DEBUG_FLAGS. It is # set to "-g" at default. # +# WITH_DEBUG_PORTS - A list of origins for which WITH_DEBUG will be set +# # WITH_SSP_PORTS # - If set, SSP_FLAGS (defaults to -fstack-protector) # is added to CFLAGS and the necessary flags @@ -1303,6 +1305,12 @@ MAKE_ENV+= TMPDIR="${TMPDIR}" CONFIGURE_ENV+= TMPDIR="${TMPDIR}" .endif # defined(TMPDIR) +.if defined(WITH_DEBUG_PORTS) +.if ${WITH_DEBUG_PORTS:M${PKGORIGIN}} +WITH_DEBUG= yes +.endif +.endif + # Reset value from bsd.own.mk. .if defined(WITH_DEBUG) && !defined(WITHOUT_DEBUG) STRIP= #none
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311181948.rAIJmMHj046925>