diff options
author | eadler <eadler@FreeBSD.org> | 2013-11-19 03:48:21 +0800 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2013-11-19 03:48:21 +0800 |
commit | 0a54b876598f3291b6d357ecbffc1dfa48938c54 (patch) | |
tree | a4d7ce97b8ce4ff90afeaeb8e36ac04c16a22d7f | |
parent | 2dd7c2575b1492c57f34d01a1aede6ab519888f3 (diff) | |
download | freebsd-ports-gnome-0a54b876598f3291b6d357ecbffc1dfa48938c54.tar.gz freebsd-ports-gnome-0a54b876598f3291b6d357ecbffc1dfa48938c54.tar.zst freebsd-ports-gnome-0a54b876598f3291b6d357ecbffc1dfa48938c54.zip |
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)
-rw-r--r-- | Mk/bsd.port.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index fe0721e42403..fa739730909e 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -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 |