public inbox for [email protected]  
help / color / mirror / Atom feed
From: Tom Lane <[email protected]>
To: Dominik Michael Rauh <[email protected]>
Cc: [email protected]
Subject: Re: Configure problem when cross-compiling PostgreSQL 16.1
Date: Thu, 07 Dec 2023 09:18:13 -0500
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

Dominik Michael Rauh <[email protected]> writes:
> Apparently when cross-compiling the linker is automatically assumed to not
> understand "--export-dynamic", leading to aforementioned problem on my end.
> ...
> There is also at least one additional linker flag "--as-needed" that is not
> being used when cross-compiling. Is this a bug or am I misunderstanding the
> implications that PostgreSQL has when "$cross_compiling=yes"?

Cross-compiling isn't really a supported thing, because there's too
much stuff we can't find out about the target system in that case.
If it works for you, great, but if it doesn't we're unlikely to put
a lot of effort into fixing it.  You might be able to manually
correct whatever mistaken assumptions configure made (by editing
its output files).  It's hard to see how that could be automated
though.

			regards, tom lane






view thread (3+ messages)

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: Configure problem when cross-compiling PostgreSQL 16.1
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox