Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Sep 2001 15:12:27 -0500
From:      Mike Meyer <mwm@mired.org>
To:        Christoph Sold <so@i-clue.de>
Cc:        questions@freebsd.org
Subject:   Re: How to build ports debug versions?
Message-ID:  <15263.49579.762922.936994@guru.mired.org>
In-Reply-To: <34498432@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
Christoph Sold <so@i-clue.de> 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.

	<mike
--
Mike Meyer <mwm@mired.org>			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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15263.49579.762922.936994>