From owner-freebsd-questions@FreeBSD.ORG Mon Aug 2 00:26:03 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 461D3106564A for ; Mon, 2 Aug 2010 00:26:03 +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 CC50F8FC0C for ; Mon, 2 Aug 2010 00:26:02 +0000 (UTC) Received: by eyh6 with SMTP id 6so1323326eyh.13 for ; Sun, 01 Aug 2010 17:26:01 -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 :in-reply-to:date:message-id:references:user-agent:mime-version :content-type; bh=hYzshjz0s//hJPO4dS0G86F85oSdDP1gGoyRAzwNEaA=; b=kp45sVvU/Z5nijStcO1I3MS745UVGkiKKJdnbVdftqpHcYzXPTYUrfxbI2LKl/L/iO qZzBI7CsedbgVu7o3R03tXpsuUzmGJ/o9KJN62C/fefZ0uUWMguf+Ika6BkRy+p60Sj8 Cv2Eu+0DgPsI48Ma9Fd/9fEn9mjkZqQJShdIA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:mime-version:content-type; b=qAW7Uh82pLLYJr5swr9/MebnpqdX4vWE6OukYWOvWMk9rz+2eObIsuahmlRSR05d4k 7QYjAvZdc4zsGEgU/sgLqIBILyt3J0PyLjt44BNq7HbNDX58v1E2iE8q1BMzLClIr5AB B/JJRVo/jvFrtOZkpB4VULp8faH1WNcSjBBR4= Received: by 10.213.7.12 with SMTP id b12mr3139820ebb.76.1280708761640; Sun, 01 Aug 2010 17:26:01 -0700 (PDT) Received: from localhost ([180.149.95.174]) by mx.google.com with ESMTPS id a48sm7827227eei.7.2010.08.01.17.25.38 (version=SSLv3 cipher=RC4-MD5); Sun, 01 Aug 2010 17:26:01 -0700 (PDT) From: Anonymous To: Jerry In-Reply-To: <20100801072824.0a3989bf@scorpio> (Jerry's message of "Sun, 1 Aug 2010 07:28:24 -0400") Date: Sun, 01 Aug 2010 16:25:28 +0400 Message-ID: <86lj8qzfif.fsf@gmail.com> References: <20100801072824.0a3989bf@scorpio> 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 X-Mailman-Approved-At: Mon, 02 Aug 2010 01:04:14 +0000 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: Mon, 02 Aug 2010 00:26:03 -0000 (resending, previous mail didn't show up in the list archive) Jerry writes: > I have been having problems with several different programs lately. > Would there be any serious drawback to simply setting: "WITH_DEBUG= " You'd lose `-O2' compiler-specific optimization. If you want to retain it use DEBUG_FLAGS, e.g. DEBUG_FLAGS = -ggdb CFLAGS += ${DEBUG_FLAGS} Ports that build using bsdmake don't really need the second line as well as buildworld. > 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? Besides symbols some ports enable compile-time debugging and disable optimization using WITH_DEBUG ifdef that may impact performance.