From: Bruno Haible Date: Thu, 28 Mar 2024 16:50:55 +0000 (+0100) Subject: havelib: Recognize ELF platform despite SunPRO C on Linux. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=eb0b98c3f07c6fe19310d5150c11b3ffed21daa3;p=gnulib.git havelib: Recognize ELF platform despite SunPRO C on Linux. * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Recognize Linux as an ELF platform, even with the SunPRO C compiler that does not define __ELF__. --- diff --git a/ChangeLog b/ChangeLog index 1a8e39226e..0df73f2c21 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-03-28 Bruno Haible + + havelib: Recognize ELF platform despite SunPRO C on Linux. + * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Recognize Linux as an ELF + platform, even with the SunPRO C compiler that does not define __ELF__. + 2024-03-27 Bruno Haible obstack: Work around ICE with Oracle cc 12.6 (regr. 2023-12-01). diff --git a/m4/lib-prefix.m4 b/m4/lib-prefix.m4 index d597553b58..28a2206b95 100644 --- a/m4/lib-prefix.m4 +++ b/m4/lib-prefix.m4 @@ -1,4 +1,4 @@ -# lib-prefix.m4 serial 20 +# lib-prefix.m4 serial 20.1 dnl Copyright (C) 2001-2005, 2008-2024 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -174,7 +174,7 @@ AC_DEFUN([AC_LIB_PREPARE_MULTILIB], AC_CACHE_CHECK([for ELF binary format], [gl_cv_elf], [AC_EGREP_CPP([Extensible Linking Format], - [#if defined __ELF__ || (defined __linux__ && defined __EDG__) + [#if defined __ELF__ || (defined __linux__ && (defined __EDG__ || defined __SUNPRO_C)) Extensible Linking Format #endif ],