From 6b0f894a73274116982df1a3a4013e76e7375f7f Mon Sep 17 00:00:00 2001 From: Debian Med Packaging Team Date: Mon, 4 Sep 2023 22:40:42 -0400 Subject: [PATCH] fix portability issues that led to Hurd build failures * src/build-system/configure(.ac): - Reflect the Hurd's support for -Wl,rpath,... . * src/connect/ncbi_socket_cxx.cpp, src/connect/ext/ncbi_localnet.c: cope with missing PATH_MAX everywhere, not just under Windows. Author: Aaron M. Ucko Last-Update: 2020-09-19 Gbp-Pq: Name hurd_fixes --- c++/src/build-system/configure | 2 +- c++/src/build-system/configure.ac | 2 +- c++/src/connect/ncbi_socket_cxx.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/c++/src/build-system/configure b/c++/src/build-system/configure index c06295ae..50a90620 100755 --- a/c++/src/build-system/configure +++ b/c++/src/build-system/configure @@ -10464,7 +10464,7 @@ if test -z "$CONF_f_runpath" ; then CONF_f_runpath="-R" ;; linux*:[GI]CC | linux*Clang | *bsd*:GCC | *bsd*Clang | cygwin*:GCC \ - | osf*:GCC ) + | osf*:GCC | gnu*:GCC ) CONF_f_runpath="-Wl,-rpath," ;; irix*:* | linux*:KCC | *:Compaq ) diff --git a/c++/src/build-system/configure.ac b/c++/src/build-system/configure.ac index e0959ce4..370a82ec 100644 --- a/c++/src/build-system/configure.ac +++ b/c++/src/build-system/configure.ac @@ -2257,7 +2257,7 @@ if test -z "$CONF_f_runpath" ; then CONF_f_runpath="-R" ;; linux*:[[GI]]CC | linux*Clang | *bsd*:GCC | *bsd*Clang | cygwin*:GCC \ - | osf*:GCC ) + | osf*:GCC | gnu*:GCC ) CONF_f_runpath="-Wl,-rpath," ;; irix*:* | linux*:KCC | *:Compaq ) diff --git a/c++/src/connect/ncbi_socket_cxx.cpp b/c++/src/connect/ncbi_socket_cxx.cpp index 00c3a158..9b0a9131 100644 --- a/c++/src/connect/ncbi_socket_cxx.cpp +++ b/c++/src/connect/ncbi_socket_cxx.cpp @@ -35,7 +35,7 @@ #include "ncbi_assert.h" // no _ASSERT()s, keep clean from xncbi #include #include // for PATH_MAX -#if defined(NCBI_OS_MSWIN) && !defined(PATH_MAX) +#ifndef PATH_MAX # define PATH_MAX 512 // will actually use less than 32 chars #endif // NCBI_OS_MSWIN && !PATH_MAX -- 2.30.2