Modifying CPPFLAGS for a port
Chuck Swiger
cswiger at mac.com
Sat Apr 17 06:30:25 PDT 2004
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
More information about the freebsd-ports
mailing list