Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Apr 2004 09:32:08 -0400
From:      Chuck Swiger <cswiger@mac.com>
To:        Jason Lixfeld <jason+lists.freebsd@lixfeld.ca>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Modifying CPPFLAGS for a port
Message-ID:  <408131D8.9080900@mac.com>
In-Reply-To: <EC2CA69E-9071-11D8-BFD6-000A95989E4A@lixfeld.ca>
References:  <EC2CA69E-9071-11D8-BFD6-000A95989E4A@lixfeld.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
Jason Lixfeld wrote:
> I've been digging around trying to debug an issue with OpenLDAP and I 
> need to compile the port with -g and without -O.  I can add -g into the 
> CPPFLAGS by exporting the variable before running make, however I can't 
> figure out where the CPPFLAGS are passed from make to the configure 
> script for the actual source code.  Can anyone give me some pointers?

You want to change CFLAGS, not CPPFLAGS.  Set "CFLAGS=-g" in /etc/make.conf 
(or pass it directly to make on the command line) and the port ought to 
compile using the compiler flags you've asked for.

-- 
-Chuck



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