Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 32554 invoked from network); 14 Apr 2009 07:45:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Apr 2009 07:45:40 -0000 Received: (qmail 22158 invoked by uid 500); 14 Apr 2009 07:45:39 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 22047 invoked by uid 500); 14 Apr 2009 07:45:39 -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 22039 invoked by uid 99); 14 Apr 2009 07:45:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Apr 2009 07:45:39 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [64.202.165.38] (HELO smtpauth21.prod.mesa1.secureserver.net) (64.202.165.38) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 14 Apr 2009 07:45:31 +0000 Received: (qmail 8381 invoked from network); 14 Apr 2009 07:45:08 -0000 Received: from unknown (76.252.112.72) by smtpauth21.prod.mesa1.secureserver.net (64.202.165.38) with ESMTP; 14 Apr 2009 07:45:08 -0000 Message-ID: <49E43EF2.9060302@rowe-clan.net> Date: Tue, 14 Apr 2009 02:44:50 -0500 From: "William A. Rowe, Jr." User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Daniel.Pocock@barclayscapital.com CC: tfheen@err.no, dev@apr.apache.org Subject: Re: apr-1-config on mixed 32/64bit build server References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Daniel.Pocock@barclayscapital.com wrote: > > > >> | - the output of `apr-X-config --ld-flags' will always be .../lib or >> | .../lib64, depending on which version of apr-X-config was installed >> | most recently >> >> You should not add the -L path if it's part of the system >> search path as that'll confuse gcc in some cases. > > In my case, apr is being installed to a non-standard location (under > /opt) with some enterprise management tools (e.g. Ganglia). Therefore, > -L is required, and the gmond binaries (e.g. gmond) use the RPATH to > find apr. Only if apr-X-config hasn't been hacked, appropriately, to find the right answer. >> In Debian, if you want to build for another environment, use >> a chroot (or a VM). > > What about the special case of creating 32 bit libs for an amd64 > install? In this case, the 32 bit libs go under /usr/lib32 or something > similar (opposite to Redhat, which puts the 64 bit libs under > /usr/lib64) And thus you understand why the apr project isn't seeking actively to solve this. Whichever answer we choose is wrong for another group of folks, so it becomes your puzzle to solve for {insert distro here}