Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 84309 invoked from network); 24 Feb 2009 12:07:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Feb 2009 12:07:34 -0000 Received: (qmail 55870 invoked by uid 500); 24 Feb 2009 12:07:30 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 55756 invoked by uid 500); 24 Feb 2009 12:07:30 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 55713 invoked by uid 99); 24 Feb 2009 12:07:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Feb 2009 04:07:30 -0800 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jorton@redhat.com designates 66.187.237.31 as permitted sender) Received: from [66.187.237.31] (HELO mx2.redhat.com) (66.187.237.31) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Feb 2009 12:07:22 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n1OC70MB019579 for ; Tue, 24 Feb 2009 07:07:00 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n1OC70BA024517 for ; Tue, 24 Feb 2009 07:07:00 -0500 Received: from turnip.manyfish.co.uk (vpn-12-194.rdu.redhat.com [10.11.12.194]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n1OC70ao018234 for ; Tue, 24 Feb 2009 07:07:00 -0500 Received: from jorton by turnip.manyfish.co.uk with local (Exim 4.69) (envelope-from ) id 1Lbw3u-0002JH-5N for dev@apr.apache.org; Tue, 24 Feb 2009 12:06:58 +0000 Date: Tue, 24 Feb 2009 12:06:58 +0000 From: Joe Orton To: dev@apr.apache.org Subject: Re: apr-1-config and user CFLAGS Message-ID: <20090224120658.GA8517@redhat.com> Mail-Followup-To: dev@apr.apache.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Organization: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in UK and Wales under Company Registration No. 03798903 Directors: Michael Cunningham (USA), Brendan Lane (Ireland), Matt Parson (USA), Charlie Peters (USA) X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Feb 23, 2009 at 03:52:44PM -0500, Jeff Trawick wrote: > Surely this is a FAQ, but I couldn't find it. Why aren't user CFLAGS > included in "apr-1-config --cflags"? > A notable example of where this hurts is with a 64-bit APR build, where > anything which uses that APR must also be 64-bit but the "CFLAGS=-m64" or > similar which APR was built with aren't reported by apr-1-config --cflags. > > CPPFLAGS, LDFLAGS, etc. are similar. Putting compiler ABI flags in anything other than $CC is still a "don't do that" situation, IMO. I don't think there is a "right" answer here in general; you can find users who want it to work either way. e.g. you might like to link a libapr against some malloc debugging library -lmyalloc, and expect to be able to switch in a new libapr which is not linked against said library. That won't work if you find that everything linked against libapr is already linked against -lmyalloc. Regards, Joe