Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aum20-0007hr-0Q for pgsql-committers@arkaria.postgresql.org; Mon, 25 Apr 2016 19:18:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aum1z-0003eU-Gd for pgsql-committers@arkaria.postgresql.org; Mon, 25 Apr 2016 19:18:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aum1z-0003eG-1y; Mon, 25 Apr 2016 19:18:51 +0000 Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aum1v-00013X-0b; Mon, 25 Apr 2016 19:18:50 +0000 Received: from mfilter44-d.gandi.net (mfilter44-d.gandi.net [217.70.178.175]) by relay6-d.mail.gandi.net (Postfix) with ESMTP id 9EEABFB8A7; Mon, 25 Apr 2016 21:18:44 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter44-d.gandi.net Received: from relay6-d.mail.gandi.net ([IPv6:::ffff:217.70.183.198]) by mfilter44-d.gandi.net (mfilter44-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id u1wlePrRXZBV; Mon, 25 Apr 2016 21:18:42 +0200 (CEST) X-Originating-IP: 98.122.164.227 Received: from [192.168.10.146] (unknown [98.122.164.227]) (Authenticated sender: adsend@dunslane.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 16D82FB8B3; Mon, 25 Apr 2016 21:18:41 +0200 (CEST) Subject: Re: pgsql: Add putenv support for msvcrt from Visual Studio 2013 To: Christian Ullrich , Magnus Hagander References: <34dd7956-3324-0305-288d-edc7d56fba76@chrullrich.net> Cc: pgsql-committers , PostgreSQL-development From: Andrew Dunstan Message-ID: <571E6D90.7050903@dunslane.net> Date: Mon, 25 Apr 2016 15:18:40 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <34dd7956-3324-0305-288d-edc7d56fba76@chrullrich.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On 04/25/2016 09:27 AM, Christian Ullrich wrote: > * Magnus Hagander wrote: > >> On Sun, Apr 24, 2016 at 9:56 PM, Christian Ullrich >> >> wrote: >> >>> * Magnus Hagander wrote: >>> >>> Add putenv support for msvcrt from Visual Studio 2013 >>> http://git.postgresql.org/pg/commitdiff/9f633b404cb3be6139f8dfdea00538489ffef9ab >>> > >>> Just noticed something. This DLL detection by name has never worked in >>> debug builds where the DLL names end in "d". Is that important? > >> That's an interesting point. I guess our release builds are never with >> debugging info - but could it make the buildfarm "wrong"? >> >> Fixing it should probably be as easy as trying each dll with the >> specified >> name and also with a "d" as a suffix? > > I think so, yes. > > Personally, I would have expected that at least the debug/release DLLs > of a single CRT version would somehow share their environment, but I > tried it and they don't. > What if both are present? Is a release build prevented from loading a debug dll and vice versa? Alternatively, can we detect at compile time if we are a debug build and if so add the suffix? cheers andrew -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers