From: Debian Med Packaging Team Date: Tue, 5 Sep 2023 02:40:42 +0000 (-0400) Subject: fix portability issues that led to Hurd build failures X-Git-Tag: archive/raspbian/2.16.0+ds-7+rpi1~1^2^2^2^2^2^2^2~16 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6b0f894a73274116982df1a3a4013e76e7375f7f;p=ncbi-blast%2B.git 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 --- 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