Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nxA5B-0005wn-Tj for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Jun 2022 16:23:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nxA5A-0006Ri-Q7 for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Jun 2022 16:23:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nxA5A-0006RY-Gg for pgsql-hackers@lists.postgresql.org; Fri, 03 Jun 2022 16:23:28 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nxA57-0004tU-Gf for pgsql-hackers@postgresql.org; Fri, 03 Jun 2022 16:23:27 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 2BE76320090A; Fri, 3 Jun 2022 12:23:23 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 03 Jun 2022 12:23:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1654273402; x=1654359802; bh=zZrv9gppco EpyQGXZZhiNd6frcTa9BHyCz5KXlfaZkM=; b=X6u/f/ry5TjhIcTgR48yjZMS3p tYFakNEGUmp+4ulDKh0qAkm8Pw8yWKxRsgViZhZ4zCjETdOci1z1nWAxPtcHBH9v lTBs4wXY1qh5rwwk3HS4xKiqEav8LdSRNmSpzRX5nGuEht24pb1fKjIgsJXhThvH 74AQFo9eT1TamOpH3fhHNqDda8sI31QI3ojIOViBMIAxI0AJjc04NlrhcWmGufLr DGWHYDAjSpZ/TWbExhEUOl6qlKlX+9PEZlgWGlwWUId/MyuQkWDB4BtXHUJORwjV lWCN7uaPPE+3oSqDkCnzgDmuzPb9GB/QoAAWj1Tp8ZdFQfBlf2DKGNHiYT8g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1654273402; x=1654359802; bh=zZrv9gppcoEpyQGXZZhiNd6frcTa 9BHyCz5KXlfaZkM=; b=rFSV4ITV1WDPXj1KXP0Em+ZmUsXHgejyd4lyx4hMOmzG ckcifA3lm7WA3P97+aHNqhuII4Mz6NZ9XLTZD01EaG0sp4PnOSQUzGTu6p0m/qKD TxlnLb7B25vvM1jN/0oX1CAfq8j+P74WI5jq2DhY+el4/qzWxPFLKqW0fPfnVH7Y TL7QjAw6RAm8zQ5EWJLFF0fW/lKwUL0gQaArOcEyOpuf8anOl2uR0nuh+KzDcDq1 Sbd4ba2HBwkYnjLhE+T5ctcfBhw8oW3E30JLKH4EK7i4movdB0eUGmsqtPC7Pvcl t0acEAXNX5oB2vMNwnRG9sMZjNBWnDSkRb6Xzs8+kw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrleeigdelkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgurhgv shcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucggtffrrg htthgvrhhnpeevveeiffevjeetgfegfffgkeeuieeukedvtefhheeiudehjeelteejkeei tedtffenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghnughrvghssegrnhgrrhgr iigvlhdruggv X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 3 Jun 2022 12:23:22 -0400 (EDT) Date: Fri, 3 Jun 2022 09:23:21 -0700 From: Andres Freund To: Aleksander Alekseev Cc: Tom Lane , PostgreSQL Development Subject: Re: [RFC] building postgres with meson Message-ID: <20220603162321.x2ldcw7vb32oqumj@alap3.anarazel.de> References: <20220602163930.chnxatxr5pr472t4@alap3.anarazel.de> <1064888.1654189729@sss.pgh.pa.us> <20220602172609.3wuouzxhflohddc3@alap3.anarazel.de> <1069576.1654191231@sss.pgh.pa.us> <20220602174845.l6icnqqu63sghnku@alap3.anarazel.de> <1089211.1654196710@sss.pgh.pa.us> <20220602191755.tiop4clrbwncyg6q@alap3.anarazel.de> <1103549.1654199630@sss.pgh.pa.us> <20220602211333.op5mz2z2txqhuxsn@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2022-06-03 12:35:45 +0300, Aleksander Alekseev wrote: > > Part of the patch series is to use visibility attributes, and your #if > > TS_EMPTY(PGDLLEXPORT) thing can't handle that. > > Out of curiosity, how come a patchset that adds an alternative build system > changes the visibility attributes? It was the simplest path - on windows (and AIx) extension symbols need to be explicitly exported. We did that by building the objects constituting extension libraries, collecting the symbols, generating an export file with all the symbols, which then is passed to the linker. It was a lot less work to just add the necessary PGDLLEXPORT annotations than make that export file generation work for extensions. > I would guess they should be the same for both Autotools and Meson. It is, the patch adds it to both. > Is it necessary in order to make Meson work? Yes, or at least the simplest path. > If not, maybe it should be a separate patch. It is. https://commitfest.postgresql.org/38/3396/ Greetings, Andres Freund