Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iLR38-0001pD-6S for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Oct 2019 12:08:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iLR36-0005t4-TT for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Oct 2019 12:08:04 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iLR36-0005se-H0 for pgsql-hackers@lists.postgresql.org; Fri, 18 Oct 2019 12:08:04 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iLR33-00039g-NU for pgsql-hackers@postgresql.org; Fri, 18 Oct 2019 12:08:02 +0000 Received: by mail-wr1-x441.google.com with SMTP id t16so857810wrr.1 for ; Fri, 18 Oct 2019 05:08:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=Tw0Zu9graN6V+p5baJPLaZ6vWXe1ZfUC51vse7gjqpQ=; b=qhkIXk+ZcUYyzWVdzywt1qMXNYh8FLP8o4e2yCkgRiIUAIb5RrbCZng8seT/jzdL9c mPyPFYw3SY5s5uv7BQ9nD29gcTwRrUTP7Qqs+LltRTK/3cJyP0o2qdU9Oogoy+uBdIvD Ux37YXr7546cLsQrlJpzWNpG3NO7SjmWJZLFsPsBJd4ztnNbmD6UOZjZGOT5LP1sILLr Nnb72T7lXaKk6CHekHHjl1rdfqEVFAILJhlZwB/7L6vlxBbv3P9d1/kDd7oUJohtmT7I pM+oX4Ma6EhYI8R1yjefakizuYGsNt0oUF38fyvqmiLoCn6+T6ovaKT0Wg+eLxiQjhQw sLtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=Tw0Zu9graN6V+p5baJPLaZ6vWXe1ZfUC51vse7gjqpQ=; b=bNKQOCCqe2wXw2YZ1ZNmWpwvroKoJH/qwQDHLFIhs4V/QVxzQmbEz1h5zIwq+eVD63 VJYhZGEGfSYT0KFBqR14FW8ULG0lCb15qCKQGZKHOHTgcFKnjZnc/W8T+3XR2YmXFDl9 1GcyCVq4Q0dDgAaywZHzVN3mmAfdU/vtI7Luvqh8UnG9MUVmcocrdTo0lUGtWvb76r9y blWdMp8Z4CTGGb7ezU7e3J5JX7cW4JVZUS2X4IUwdLWa1w29qw+hPfrEh9sG4Fp7vRDC ciHgDz3Q4kovxH5X1afGD8OTns+cOIPBMdZLDCYJ+mAOLfBfhobSYOpjrcgw2ID+r2YH +R3w== X-Gm-Message-State: APjAAAU4pI/TT8LG+BfL6gxWXsEYThgBD+lJU+jU8/7x8e54h7BAcMq6 P3yAPamf8zcClWw6u7SMJxxyYQ== X-Google-Smtp-Source: APXvYqwwG4BPty+fbEEuPmgqqn6OjnBBur9qBOErvcuRiaXAvAmznAVJ8s1uPqITcqwcFLdcFh4BlA== X-Received: by 2002:a05:6000:92:: with SMTP id m18mr4348405wrx.105.1571400480246; Fri, 18 Oct 2019 05:08:00 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([185.216.34.237]) by smtp.gmail.com with ESMTPSA id x16sm4627924wrl.32.2019.10.18.05.07.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Oct 2019 05:07:59 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 28DC1300A62; Fri, 18 Oct 2019 09:07:58 -0300 (-03) Date: Fri, 18 Oct 2019 09:07:58 -0300 From: Alvaro Herrera To: Michael Paquier Cc: Peter Eisentraut , pgsql-hackers@postgresql.org Subject: Re: Clean up MinGW def file generation Message-ID: <20191018120758.GA1661@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191017071801.GC17439@paquier.xyz> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Oct-17, Michael Paquier wrote: > On Tue, Oct 15, 2019 at 09:00:23AM +0200, Peter Eisentraut wrote: > > I think we can clean this up and just have the regular ddl.def built > > normally at build time if required. > > > > Does anyone know more about this? > > This comes from here, but I cannot see a thread about this topic > around this date: > commit: a1d5d8574751d62a039d8ceb44329ee7c637196a > author: Peter Eisentraut > date: Tue, 26 Feb 2008 06:41:24 +0000 > Refactor the code that creates the shared library export files to appear > only once in Makefile.shlib and not in four copies. Well, yes, but that code originates from much earlier. For example 2a63c1602d9d (Tom Lane, Oct. 2004) is the one that created the libpq ones. But even that ancient one seems to be just refactoring some stuff that was already there, namely something that seems to have been created by commit 53cd7cd8a916: commit 53cd7cd8a9168d4b2e2feb52129336429cc99b98 Author: Bruce Momjian AuthorDate: Tue Mar 9 04:53:37 2004 +0000 CommitDate: Tue Mar 9 04:53:37 2004 +0000 Make a separate win32 debug DLL along with the non-debug version: Currently, src/interfaces/libpq/win32.mak builds a statically-linked library "libpq.lib", a debug dll "libpq.dll", import library for the debug dll "libpqdll.lib", a release dll "libpq.dll", import library for the release dll "libpqdll.lib". To avoid naming clashes, I would make the debug dll and import libraries "libpqd.dll" and "libpqddll.lib". Basically, the debug build uses the cl flags: "/MDd /D _DEBUG", and the release build uses the cl flags "/MD /D NDEBUG". Usually the debug build has a "D" suffix on the file name, so for example: libpqd.dll libpq, debug build libpqd.lib libpq, debug build, import library libpq.dll libpq, release build libpq.lib libpq, release build, import library David Turner This stuff was used by win32.mak, but I don't know if that tells anyone anything. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services