From owner-freebsd-ports@FreeBSD.ORG Sat Apr 17 06:30:25 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8B0B516A4CE for ; Sat, 17 Apr 2004 06:30:25 -0700 (PDT) Received: from out011.verizon.net (out011pub.verizon.net [206.46.170.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 77C4643D55 for ; Sat, 17 Apr 2004 06:30:24 -0700 (PDT) (envelope-from cswiger@mac.com) Received: from mac.com ([68.160.247.127]) by out011.verizon.net (InterMail vM.5.01.06.06 201-253-122-130-106-20030910) with ESMTP id <20040417133023.ZOKV18566.out011.verizon.net@mac.com>; Sat, 17 Apr 2004 08:30:23 -0500 Message-ID: <408131D8.9080900@mac.com> Date: Sat, 17 Apr 2004 09:32:08 -0400 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040316 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jason Lixfeld References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH at out011.verizon.net from [68.160.247.127] at Sat, 17 Apr 2004 08:30:23 -0500 cc: freebsd-ports@freebsd.org Subject: Re: Modifying CPPFLAGS for a port X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Apr 2004 13:30:25 -0000 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