From owner-freebsd-questions@FreeBSD.ORG Fri Jun 1 13:55:03 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 198F116A41F for ; Fri, 1 Jun 2007 13:55:03 +0000 (UTC) (envelope-from phoenix.lists@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.231]) by mx1.freebsd.org (Postfix) with ESMTP id B324B13C455 for ; Fri, 1 Jun 2007 13:55:02 +0000 (UTC) (envelope-from phoenix.lists@gmail.com) Received: by wr-out-0506.google.com with SMTP id 69so482300wra for ; Fri, 01 Jun 2007 06:55:02 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=k8XtfezruS75tjRYRdFXpCa8kNBGOZJIaBDrubrpvcrFRYWEItF5V5oVKQn7mqSMr18Gc9Q/t1ywYImPj0s4SmqA6F65WcESKrnHcSyVJ60R9QMJV2Zt+/DB4AJLe5fDvAvTTtd1saTz6Q2/peAmWEoQ4n/U4lpb/jN/YSKdVy4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=LOyQkjS/Y4ECXWxz7DL7XHgTBf8Vqm+7XEpI65Vfz++TRD2aWEnhwDerIxf+xiqzI9e34hpKfLNtuq3xGndbOgSQWDSuDJDMI6d4YpfeJPlEspUV8UDD1BDNAHm7uYiUyKD1iTvxwhxxw2/y3mcF+SlnEjL25zK0z1uAbtUGVoE= Received: by 10.78.201.10 with SMTP id y10mr1265935huf.1180706101464; Fri, 01 Jun 2007 06:55:01 -0700 (PDT) Received: from sp0-host.lan ( [77.123.95.138]) by mx.google.com with ESMTP id 34sm84286nfu.2007.06.01.06.54.59; Fri, 01 Jun 2007 06:55:00 -0700 (PDT) Message-ID: <466024E8.7030802@gmail.com> Date: Fri, 01 Jun 2007 16:53:44 +0300 From: Bogdan Potishuk User-Agent: Thunderbird 2.0.0.0 (X11/20070521) MIME-Version: 1.0 To: White Hat References: <509628.88605.qm@web34408.mail.mud.yahoo.com> In-Reply-To: <509628.88605.qm@web34408.mail.mud.yahoo.com> X-Enigmail-Version: 0.95.0 OpenPGP: id=2569D30B; url=https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x84B8D5142569D30B Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD Users Questions 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: Fri, 01 Jun 2007 13:55:03 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 White Hat said the following on 20.05.2007 17:41: > 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. > > Look at /usr/ports/Mk/bsd.port.mk in this section: .if defined(WITH_DEBUG) && !defined(WITHOUT_DEBUG) STRIP= #none STRIP_CMD= ${TRUE} DEBUG_FLAGS?= -g CFLAGS:= ${CFLAGS:N-O*:N-fno-strict*} ${DEBUG_FLAGS} .endif As you can see, if WITH_DEBUG is defined, then $STRIP will be a empty, DEBUG_FLAGS and CFLAGS changes too. - -- Regards, Bogdan - --------------------------------------------------------------- KeyID: 0x84B8D5142569D30B Fingerprint: 78FC 5C40 07CC D331 148E CC79 84B8 D514 2569 D30B Keyserver: keyserver.pgp.com - --------------------------------------------------------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGYCTmhLjVFCVp0wsRCtOiAJ9dBEzm2hpPusake0BB/2LHTbjXlACg38OC sk3fD4lK+mhzNP7XH/BYdX8= =/LwZ -----END PGP SIGNATURE-----