From owner-svn-ports-all@FreeBSD.ORG Fri Mar 28 11:04:55 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BC3271AD; Fri, 28 Mar 2014 11:04:55 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A90F1CCA; Fri, 28 Mar 2014 11:04:55 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2SB4t1a027797; Fri, 28 Mar 2014 11:04:55 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2SB4to0027795; Fri, 28 Mar 2014 11:04:55 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201403281104.s2SB4to0027795@svn.freebsd.org> From: Baptiste Daroussin Date: Fri, 28 Mar 2014 11:04:55 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r349407 - head/Mk X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Mar 2014 11:04:55 -0000 Author: bapt Date: Fri Mar 28 11:04:54 2014 New Revision: 349407 URL: http://svnweb.freebsd.org/changeset/ports/349407 QAT: https://qat.redports.org/buildarchive/r349407/ Log: Make option DEBUG work like WITH_DEBUG Modified: head/Mk/bsd.options.mk head/Mk/bsd.port.mk Modified: head/Mk/bsd.options.mk ============================================================================== --- head/Mk/bsd.options.mk Fri Mar 28 10:34:51 2014 (r349406) +++ head/Mk/bsd.options.mk Fri Mar 28 11:04:54 2014 (r349407) @@ -391,6 +391,10 @@ NOPORTDOCS= yes NOPORTEXAMPLES= yes .endif +.if ${PORT_OPTIONS:MDEBUG} +WITH_DEBUG= yes +.endif + .if defined(NO_OPTIONS_SORT) ALL_OPTIONS= ${OPTIONS_DEFINE} .endif Modified: head/Mk/bsd.port.mk ============================================================================== --- head/Mk/bsd.port.mk Fri Mar 28 10:34:51 2014 (r349406) +++ head/Mk/bsd.port.mk Fri Mar 28 11:04:54 2014 (r349407) @@ -1311,12 +1311,6 @@ WITH_DEBUG= yes .endif .endif -# Reset value from bsd.own.mk. -.if defined(WITH_DEBUG) && !defined(WITHOUT_DEBUG) -STRIP= #none -MAKE_ENV+= DONTSTRIP=yes -.endif - .include "${PORTSDIR}/Mk/bsd.options.mk" # Start of pre-makefile section. @@ -1596,7 +1590,10 @@ CFLAGS:= ${CFLAGS:C/${_CPUCFLAGS}//} .endif .endif +# Reset value from bsd.own.mk. .if defined(WITH_DEBUG) && !defined(WITHOUT_DEBUG) +STRIP= #none +MAKE_ENV+= DONTSTRIP=yes STRIP_CMD= ${TRUE} DEBUG_FLAGS?= -g CFLAGS:= ${CFLAGS:N-O*:N-fno-strict*} ${DEBUG_FLAGS}