Re: Issues cross-compiling libpq 14.x to MacOS armv8 - Mailing list pgsql-general

From Tom Lane
Subject Re: Issues cross-compiling libpq 14.x to MacOS armv8
Date
Msg-id 1636357.1638307994@sss.pgh.pa.us
Whole thread Raw
In response to Re: Issues cross-compiling libpq 14.x to MacOS armv8  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Issues cross-compiling libpq 14.x to MacOS armv8  (Daniel Gustafsson <daniel@yesql.se>)
Re: Issues cross-compiling libpq 14.x to MacOS armv8  (Vincas Dargis <vindrg@gmail.com>)
List pgsql-general
I wrote:
> It seems like a useful test when *not* cross compiling, which is most
> of the time.  I'd just wrap that bit in
>     if test "$cross_compiling" = no; then

Or actually, since we should print something, it looks like this will do:

diff --git a/configure.ac b/configure.ac
index a5c10b8d56..7257afda20 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2287,6 +2287,8 @@ if test x"$with_ssl" = x"openssl" ; then
   AC_MSG_RESULT([OpenSSL])
 elif test x"$PORTNAME" = x"win32" ; then
   AC_MSG_RESULT([Windows native])
+elif test x"$cross_compiling" = x"yes"; then
+  AC_MSG_RESULT([assuming /dev/urandom])
 else
   AC_MSG_RESULT([/dev/urandom])
   AC_CHECK_FILE([/dev/urandom], [], [])

Off to see if I can verify that before pushing.

            regards, tom lane



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Issues cross-compiling libpq 14.x to MacOS armv8
Next
From: Daniel Gustafsson
Date:
Subject: Re: Issues cross-compiling libpq 14.x to MacOS armv8