From dev-return-20238-apmail-apr-dev-archive=apr.apache.org@apr.apache.org Tue May 20 21:15:15 2008 Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 51972 invoked from network); 20 May 2008 21:15:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 May 2008 21:15:13 -0000 Received: (qmail 63809 invoked by uid 500); 20 May 2008 21:15:14 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 63756 invoked by uid 500); 20 May 2008 21:15:14 -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 63745 invoked by uid 99); 20 May 2008 21:15:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 May 2008 14:15:14 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=FM_FAKE_HELO_VERIZON,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [206.46.173.3] (HELO vms173003pub.verizon.net) (206.46.173.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 May 2008 21:14:20 +0000 Received: from black ([71.245.67.80]) by vms173003.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0K16004Z3QVE9XI0@vms173003.mailsrvcs.net> for dev@apr.apache.org; Tue, 20 May 2008 16:11:38 -0500 (CDT) Received: from bob by black with local (Exim 4.69) (envelope-from ) id 1JyZAD-0006Oq-GE; Tue, 20 May 2008 17:14:29 -0400 Date: Tue, 20 May 2008 17:14:28 -0400 From: Bob Rossi Subject: Re: dbd pgsql autotools patch In-reply-to: <1211317193.23239.43.camel@shrek.rexursive.com> To: Bojan Smojver Cc: APR Development List Mail-followup-to: Bojan Smojver , APR Development List Message-id: <20080520211428.GA24464@brasko.net> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline References: <1211237319.23239.18.camel@shrek.rexursive.com> <20080520000540.GF19723@brasko.net> <1211242298.23239.26.camel@shrek.rexursive.com> <20080520004718.GG19723@brasko.net> <1211246462.23239.29.camel@shrek.rexursive.com> <1211246643.23239.31.camel@shrek.rexursive.com> <20080520012731.GI19723@brasko.net> <1211255385.23239.42.camel@shrek.rexursive.com> <20080520105514.GK19723@brasko.net> <1211317193.23239.43.camel@shrek.rexursive.com> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-Virus-Checked: Checked by ClamAV on apache.org On Wed, May 21, 2008 at 06:59:53AM +1000, Bojan Smojver wrote: > On Tue, 2008-05-20 at 06:55 -0400, Bob Rossi wrote: > > > OK, I can try this, however, this patch still doesn't work on windows. I > > get link errors on windows because the the libs aren't linked in. > > > > $ ./pg_config --libs > > -lpgport -lm -lSecur32 -lws2_32 -lshfolder > > > > $ ./pg_config --libdir > > C:/msys/1.0/.../POSTGR~1/POSTGR~1.1/lib > > > > So, if the --libs is not provided on windows, then it doesn't link. > > Sorry to be such a pain, I don't know what else we could do here. > > > > This is from the pgsql-bugs list: > > > > Well, if you are linking statically, you might as well refer to > > pg_config --libs, or any other infinite list of libraries you can dream of. > > The main reason why this is discouraged for dynamic linking is that this > > creates unnecessary package dependencies. But for static linking, it sounds > > OK to me. I guess we have never really bothered to carefully specify the > > static case. > > OK, not a problem. We'll whack libs in there too. Thanks! Let me know, I'll test it out. Bob Rossi