Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 7691 invoked from network); 28 Jul 2009 21:11:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Jul 2009 21:11:57 -0000 Received: (qmail 68557 invoked by uid 500); 28 Jul 2009 21:05:18 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 68459 invoked by uid 500); 28 Jul 2009 21:05:17 -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 68450 invoked by uid 99); 28 Jul 2009 21:05:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jul 2009 21:05:17 +0000 X-ASF-Spam-Status: No, hits=4.7 required=10.0 tests=SPF_NEUTRAL,URIBL_BLACK X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [64.202.165.37] (HELO smtpauth13.prod.mesa1.secureserver.net) (64.202.165.37) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 28 Jul 2009 21:05:07 +0000 Received: (qmail 19667 invoked from network); 28 Jul 2009 21:04:46 -0000 Received: from unknown (76.252.112.72) by smtpauth13.prod.mesa1.secureserver.net (64.202.165.37) with ESMTP; 28 Jul 2009 21:04:46 -0000 Message-ID: <4A6F67E5.1010003@rowe-clan.net> Date: Tue, 28 Jul 2009 16:04:37 -0500 From: "William A. Rowe, Jr." User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: Graham Leggett CC: dev@apr.apache.org, commits@apr.apache.org Subject: Re: svn commit: r798326 - in /apr/apr-util/branches/1.3.x: CHANGES build/rpm/apr-util.spec.in References: <20090727231621.DE284238887A@eris.apache.org> <4A6E3C89.8000407@rowe-clan.net> <4A6E4574.6010906@sharp.fm> In-Reply-To: <4A6E4574.6010906@sharp.fm> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Graham Leggett wrote: > William A. Rowe, Jr. wrote: > >> -0.5, can you clarify why this isn't true from the Makefile itself? >> This just didn't seem like a rpm-specific quirk. > > On MacOSX, libtool does the right thing, and ./testall is a script that > picks up the right libraries from the right place. On Linux, ./testall > is the final binary, and so only picks up libs from LD_LIBRARY_PATH. Irrelevant. ./testall wasn't built for execution, make check was built for execution. And the Makefile check: target illustrates how to run this. -1 (binding, veto) for an RPM-specific hack. Nothing that is produced from make; make check; make install should be altered by the rpm process; you obviously screw non-rpm, linux users in the process. > It looks like this is caused by a flag called "-no-install" which is > passed to libtool, and I find this hard wired into configure.in: > > # Use -no-install to link the test programs on all platforms > # but Darwin, where it would cause the programs to be linked > # against installed versions of libapr instead of those just > # built. > case $host in > *-apple-darwin*) LT_NO_INSTALL="" ;; > *) LT_NO_INSTALL="-no-install" ;; > esac > AC_SUBST(LT_NO_INSTALL) > > So, anyone know who put this there, and why? Because you do not want the destination RPATH as recorded in the binary, you want the LD_LIBRARY_PATH (or LIBPATH or SHLIB_PATH). Because you may test before install, while installing over an existing tree, using the installed flavor would be fatal.