Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Nov 2013 14:35:11 +0400
From:      Boris Samorodov <bsam@passap.ru>
To:        Eitan Adler <lists@eitanadler.com>
Cc:        FreeBSD Ports <ports@freebsd.org>
Subject:   Re: Adding WITH_DEBUG_PORTS to add WITH_DEBUG for specific ports.
Message-ID:  <52889BDF.7010007@passap.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 пишет:

> What do people think of something like the following?  This would
> allow users to compile specific ports with debugging capabilities.

I vote for this change. thanks!

> 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

-- 
WBR, Boris Samorodov (bsam)
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve



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