From owner-freebsd-questions@FreeBSD.ORG Mon May 21 23:04:45 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8FB3F16A468 for ; Mon, 21 May 2007 23:04:45 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout3.cac.washington.edu (mxout3.cac.washington.edu [140.142.32.166]) by mx1.freebsd.org (Postfix) with ESMTP id 587E513C4CA for ; Mon, 21 May 2007 23:04:45 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from hymn09.u.washington.edu (hymn09.u.washington.edu [140.142.12.183]) by mxout3.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4LN4iUp017132 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 21 May 2007 16:04:44 -0700 Received: from localhost (localhost [127.0.0.1]) by hymn09.u.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l4LN4iEa031492 for ; Mon, 21 May 2007 16:04:44 -0700 X-Auth-Received: from [192.55.52.2] by hymn09.u.washington.edu via HTTP; Mon, 21 May 2007 16:04:44 PDT Date: Mon, 21 May 2007 16:04:44 -0700 (PDT) From: youshi10@u.washington.edu To: User Questions In-Reply-To: <20070521185629.22CA.GERARD-SEIBERT@seibercom.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-PMX-Version: 5.3.1.294258, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.5.21.154635 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='SUPERLONG_LINE 0.05, NO_REAL_NAME 0, __CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0' Subject: Re: Build with debug symbols 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, 21 May 2007 23:04:45 -0000 On Mon, 21 May 2007, Gerard wrote: > On Monday May 21, 2007 at 04:12:15 (PM) Giorgos Keramidas wrote: > > >>> If I build a port with debugging information; i.e. >>> 'make -g', is that debugging information stripped out >>> when the program is installed? If so, is there anyway >>> to prevent this from happening? >>> >>> I have been attempting to build 'claws-mail' with >>> debugging information; however, when I run the program >>> under 'gdb' that information does not appear to be >>> present. I heard that there was a 'STRIP' flag I could >>> set; however, I cannot find any definitive information >>> regarding it. >> >> # env DEBUG_FLAGS='-g' CFLAGS='' ... >> >> The DEBUG_FLAGS option turns off symbol stripping. > > Would that also work if "DEBUG_FLAGS='g'" were placed in the > /etc/make.conf file or does it have to be placed in the environment prior > to building the port. I assume that the '-g' has to still be placed on > the 'make' command when doing the actual build. > > > -- > Gerard There's another flag in make.conf or pkgtools.conf that controls whether or not debug symbols are stripped post install, but I don't remember it right offhand. It should be in the relevant file's manpage though.. -Garrett