Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ar4GT-0000wj-5c for pgsql-bugs@arkaria.postgresql.org; Fri, 15 Apr 2016 13:58:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ar4GS-000121-Og for pgsql-bugs@arkaria.postgresql.org; Fri, 15 Apr 2016 13:58:28 +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 1ar4GS-00011v-Fu for pgsql-bugs@postgresql.org; Fri, 15 Apr 2016 13:58:28 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ar4GP-0000MW-NB for pgsql-bugs@postgresql.org; Fri, 15 Apr 2016 13:58:28 +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 u3FDvx58006345; Fri, 15 Apr 2016 09:58:00 -0400 From: Tom Lane To: Andres Freund cc: Christoph Berg , Alvaro Herrera , Daniel Golle , pgsql-bugs@postgresql.org Subject: Re: BUG #14033: cross-compilation to ARM fails In-reply-to: <20160415041314.tboagai3x2r74omq@alap3.anarazel.de> References: <20160319165321.GB1744@makrotopia.org> <20160319223826.GA333151@alvherre.pgsql> <20160414094243.GC11804@msg.df7cb.de> <17999.1460693282@sss.pgh.pa.us> <20160415041314.tboagai3x2r74omq@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Thu, 14 Apr 2016 21:13:14 -0700" Date: Fri, 15 Apr 2016 09:57:59 -0400 Message-ID: <6344.1460728679@sss.pgh.pa.us> X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Andres Freund writes: > On 2016-04-15 00:08:02 -0400, Tom Lane wrote: >> I can't see us taking either of those answers. We haven't been willing >> to accept a hard dependency on perl at build time, why would we do so >> at run time? > We could build pg_config both on the host and build architectures > (presumably with the typical triplet as a prefix). Not sure how to > automatically use that in pg_config --pgxs invocations in extension > makefiles though. Could we insist that for a cross-compilation, the appropriate instance of pg_config has to be found first in the PATH under the name pg_config? That turns it into a matter of preparing the build environment. A different line of thought is to expose the data as data rather than an executable. For example, as a makefile fragment containing variable assignments, which would be include'd by extension makefiles. There are a lot of problems to be solved with this idea too, of course: what do you do to make it play in non-make-based build systems? And where would this file live? The lack of a PATH mechanism makes it far harder for would-be users to find the file. Still, maybe we could make something out of that approach. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs