Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WPY0V-0007fM-0G for pgsql-odbc@arkaria.postgresql.org; Mon, 17 Mar 2014 13:55:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WPY0U-0001r9-GD for pgsql-odbc@arkaria.postgresql.org; Mon, 17 Mar 2014 13:55:10 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WPY0T-0001pD-EQ for pgsql-odbc@postgresql.org; Mon, 17 Mar 2014 13:55:09 +0000 Received: from smtp-outbound-2.vmware.com ([208.91.2.13]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WPY0Q-0000tM-5B for pgsql-odbc@postgresql.org; Mon, 17 Mar 2014 13:55:08 +0000 Received: from sc9-mailhost3.vmware.com (sc9-mailhost3.vmware.com [10.113.161.73]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id 9CA1D28419; Mon, 17 Mar 2014 06:54:39 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (zcs-prod-ext-mta-1.vmware.com [10.113.62.223]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id 9A05B40236; Mon, 17 Mar 2014 06:54:39 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTP id B4EEF12000A; Mon, 17 Mar 2014 06:54:35 -0700 (PDT) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTPSA; Mon, 17 Mar 2014 06:54:34 -0700 (PDT) Message-ID: <5326FE9B.8010902@vmware.com> Date: Mon, 17 Mar 2014 15:54:35 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 MIME-Version: 1.0 To: Michael Paquier CC: PostgreSQL mailing lists Subject: Re: Adding flag LDFLAGS for compilation of regression tests References: <5322E1C6.4080908@vmware.com> <5326B305.40300@vmware.com> <5326F63D.8040509@vmware.com> In-Reply-To: <5326F63D.8040509@vmware.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -6.9 (------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org On 03/17/2014 03:18 PM, Heikki Linnakangas wrote: > On 03/17/2014 01:24 PM, Michael Paquier wrote: >> On Mon, Mar 17, 2014 at 5:32 PM, Heikki Linnakangas >> wrote: >>> Actually, we could just move test/Makefile to test/Makefile.in, and let >>> configure set the LDFLAGS/CFLAGS variables directly in test/Makefile. >>> >>> I pushed a patch to do that. It doesn't do anything automatic about >>> PG_CONFIG; it would still be nice to add a configure flag for that. >> configure already sets PG_CONFIG, so we could do like in the patch >> attached and add a flag in test/Makefile.in similarly to CFLAGS and >> LDFLAGS. > > Hmm, PG_CONFIG is currently tied to the --with-libpq configure option, > so that's only available if you build the driver with libpq. Would need > to separate that into a separate option. Then again, if building with libpq, then there's no reason to *not* use the PG_CONFIG from configure. Committed a patch to do that. If you configure --without-libpq, then you still need to pass the path to PG_CONFIG manually at the command line when building the regression suite, i.e "cd test; make installcheck PG_CONFIG=". But it's still an improvement that you don't need it when building with libpq, which is the default. - Heikki -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc