Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Nov 2013 14:40:18 +0400
From:      Ilya A. Arkhipov <rum1cro@yandex.ru>
To:        Eitan Adler <lists@eitanadler.com>, FreeBSD Ports <ports@freebsd.org>
Subject:   Re: Adding WITH_DEBUG_PORTS to add WITH_DEBUG for specific ports.
Message-ID:  <188911384684818@web14m.yandex.ru>
In-Reply-To: <CAF6rxgmJGymAo%2BuPx1otb0UpD_wbHi3ebBgAV6ZxxYBxrFv_TQ@mail.gmail.com>
References:  <CAF6rxgmJGymAo%2BuPx1otb0UpD_wbHi3ebBgAV6ZxxYBxrFv_TQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
17.11.2013, 02:55, "Eitan Adler" <lists@eitanadler.com>:
> What do people think of something like the following? šThis would
> allow users to compile specific ports with debugging capabilities.
>
> Index: Mk/bsd.port.mk
> ===================================================================
> --- Mk/bsd.port.mk ššššš(revision 333538)
> +++ Mk/bsd.port.mk ššššš(working copy)
> @@ -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,10 @@ MAKE_ENV+= ššššššTMPDIR="${TMPDIR}"
> šCONFIGURE_ENV+= šššššššTMPDIR="${TMPDIR}"
> š.endif # defined(TMPDIR)
>
> +.if defined(WITH_DEBUG_PORTS) && ${WITH_DEBUG_PORTS:M${PKGORIGIN}}
> +WITH_DEBUG= šššyes
> +.endif
> +
> š# Reset value from bsd.own.mk.
> š.if defined(WITH_DEBUG) && !defined(WITHOUT_DEBUG)
> šSTRIP= #none
>
> --
> Eitan Adler
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"

I like it.

-- 
With Best Regards,
Ilya A. Arkhipov



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?188911384684818>