Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ew8Fl-0006Zu-Fj for pgsql-committers@arkaria.postgresql.org; Wed, 14 Mar 2018 15:23:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ew8Fi-0000dJ-Pz for pgsql-committers@arkaria.postgresql.org; Wed, 14 Mar 2018 15:23:42 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ew8Fi-0000cP-Hi for pgsql-committers@lists.postgresql.org; Wed, 14 Mar 2018 15:23:42 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ew8Ff-0001Kw-4N for pgsql-committers@postgresql.org; Wed, 14 Mar 2018 15:23:40 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w2EFNZ47024956; Wed, 14 Mar 2018 11:23:35 -0400 From: Tom Lane To: Peter Eisentraut cc: David Rowley , pgsql-committers Subject: Re: pgsql: Move strtoint() to common In-reply-to: <4ca0838e-9cd3-bfae-b6b8-51ba0eabcabe@2ndquadrant.com> References: <29889.1520968202@sss.pgh.pa.us> <4ca0838e-9cd3-bfae-b6b8-51ba0eabcabe@2ndquadrant.com> Comments: In-reply-to Peter Eisentraut message dated "Wed, 14 Mar 2018 09:17:07 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <24954.1521041015.1@sss.pgh.pa.us> Date: Wed, 14 Mar 2018 11:23:35 -0400 Message-ID: <24955.1521041015@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Eisentraut writes: > I think the problem is rather that we somehow need to tell it to link > src/common/string.c into pgtypeslib. Yeah, that's what I supposed. Looking at pgtypeslib, there's already infrastructure for collecting stuff from src/port/, and I see you added some for src/common/ in its Makefile, but evidently not in the MSVC scripts. It looks like the way the MSVC build works now is dependent on @pgportfiles. You could invent parallel infrastructure for src/common/, but I wonder whether the path of least resistance might not be to put strtoint() into src/port/ instead. regards, tom lane