From owner-freebsd-questions Wed Sep 12 13:12:31 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-94-248-46.mmcable.com [24.94.248.46]) by hub.freebsd.org (Postfix) with SMTP id 8F90337B409 for ; Wed, 12 Sep 2001 13:12:28 -0700 (PDT) Received: (qmail 37774 invoked by uid 100); 12 Sep 2001 20:12:27 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15263.49579.762922.936994@guru.mired.org> Date: Wed, 12 Sep 2001 15:12:27 -0500 To: Christoph Sold Cc: questions@freebsd.org Subject: Re: How to build ports debug versions? In-Reply-To: <34498432@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Christoph Sold types: > Building a port is not new to me. How do I specify the -g compiler flag > when building a port. Usually, i just do > make install distclean > Any pointers? Assuming you want to leave the sources around for debugging: make -DCFLAGS=-g install may work. However, overriding CFLAGS in the Makefile may break things. In which case, put "CFLAGS=-g" in /etc/make.conf. See the make.conf man page for more information. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message