From owner-freebsd-questions@FreeBSD.ORG Tue Aug 3 03:39:18 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD4401065672 for ; Tue, 3 Aug 2010 03:39:18 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4C4B18FC12 for ; Tue, 3 Aug 2010 03:39:17 +0000 (UTC) Received: by eyh6 with SMTP id 6so1717907eyh.13 for ; Mon, 02 Aug 2010 20:39:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=O689ytXRxPC5tLSaomXoXriCd+RBfBBiRdrpfNATB5w=; b=RSjOeud1KBpax5xsmvNUM6atp8ADuFWYv0FGyadHZ8l3AeJrSKIdqTtSw6VhOZSpuZ 4LdWZiiRhvmqWRBLZA7rrerL7Q39UK5QDAy4bCijtm94FCaWTxoiuFUOU1BZBw5CNzkR QLh2nr3elagtvwP0q8sdLOgLDsN1+nGRVIQPY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=tR/3t1/ILGOCbaswORllOPqMNWe0TOyJbXxxruG21WEZqez35soMfNgw3mqywDA8Ey v/JPvmN++3SNnxWJj0hyegC8R6DNH1TybrBj8e/NTB6aM/vFvH6kmG2glkWlF7uH3Mol yzG4ffiMktpnddyNPxpFDPy6TkGUhBy13MOek= Received: by 10.213.2.204 with SMTP id 12mr4933513ebk.98.1280806757199; Mon, 02 Aug 2010 20:39:17 -0700 (PDT) Received: from localhost ([95.143.193.145]) by mx.google.com with ESMTPS id u9sm4027536eeh.5.2010.08.02.20.39.14 (version=SSLv3 cipher=RC4-MD5); Mon, 02 Aug 2010 20:39:16 -0700 (PDT) From: Anonymous To: Robert Bonomi References: <201008021646.o72Gk9Nk001750@mail.r-bonomi.com> Date: Tue, 03 Aug 2010 07:39:06 +0400 In-Reply-To: <201008021646.o72Gk9Nk001750@mail.r-bonomi.com> (Robert Bonomi's message of "Mon, 2 Aug 2010 11:46:09 -0500 (CDT)") Message-ID: <86mxt4pdph.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: Setting Debug flag in /etc/make.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Aug 2010 03:39:18 -0000 Robert Bonomi writes: >> I have been having problems with several different programs lately. >> Would there be any serious drawback to simply setting: "WITH_DEBUG= " >> in the /etc/make.conf file to force everything I build/rebuild to be >> built with debug symbols? I am assuming that I can simply place that >> flag in the make.conf file. Do I have to also give it a value; i.e "=1" >> or "=yes" also? >> > > What's wrong with the traditional way of doing this -- i.e., setting the > environment variable CFLAGS to -g befoe your start make-inthings? Because you need to define empty STRIP, too. OTOH, setting WITH_DEBUG or DEBUG_FLAGS does this for you.