Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WOPsv-0008EX-NF for pgsql-odbc@arkaria.postgresql.org; Fri, 14 Mar 2014 11:02:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WOPsv-0003LP-3x for pgsql-odbc@arkaria.postgresql.org; Fri, 14 Mar 2014 11:02:41 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WOPsu-0003LB-8u for pgsql-odbc@postgresql.org; Fri, 14 Mar 2014 11:02:40 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WOPsq-0007M5-96 for pgsql-odbc@postgresql.org; Fri, 14 Mar 2014 11:02:38 +0000 Received: from sc9-mailhost2.vmware.com (sc9-mailhost2.vmware.com [10.113.161.72]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id DA4BD28355; Fri, 14 Mar 2014 04:02:34 -0700 (PDT) Received: from zcs-prod-ext-mta-2.vmware.com (zcs-prod-ext-mta-2.vmware.com [10.113.62.224]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id 9FD20B0371; Fri, 14 Mar 2014 04:02:34 -0700 (PDT) Received: from zcs-prod-ext-mta-2.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTP id 1C2E3C0035; Fri, 14 Mar 2014 04:02:31 -0700 (PDT) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTPSA; Fri, 14 Mar 2014 04:02:29 -0700 (PDT) Message-ID: <5322E1C6.4080908@vmware.com> Date: Fri, 14 Mar 2014 13:02:30 +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: In-Reply-To: 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/14/2014 09:06 AM, Michael Paquier wrote: > Hi all, > > I noticed that the regression tests of odbc do not take into account > LDFLAGS at compilation, only CFLAGS actually. Having the possibility > to use this flag is useful particularly when libodbc.so is in a > customized path. Patch is attached. Hmm. The regression test Makefile really ought to pick up the same settings we use for the main makefile, so that if you do "./configure --with-unixodbc=...", the regression tests are automatically built against the same library. I'm not sure what's the best way to achieve that. The regression Makefile is currently completely separate from the automake system. We could add "SUBDIRS=test" into Makefile.am, and then you could do "make installcheck" from the top directory to run the regressions, and you could use the LDFLAGS and other variables set by automake. A problem with that is that the regression suite Makefile depends on PostgreSQL's pg_config to find the pg_regress program. I guess the proper solution would be to add an optional configure flag to provide a path to pg_config. If pg_config is not found, then you couldn't run the regression tests, but you could still build the driver without the PostgreSQL header files etc. - Heikki -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc