]> Savannah Git Hosting - gnulib.git/commitdiff
havelib: Recognize ELF platform despite SunPRO C on Linux.
authorBruno Haible <bruno@clisp.org>
Thu, 28 Mar 2024 16:50:55 +0000 (17:50 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 8 Apr 2024 09:43:02 +0000 (11:43 +0200)
* 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__.

ChangeLog
m4/lib-prefix.m4

index 1a8e39226e5e455ab0228da629ca729957b32197..0df73f2c2137d1737f37d18bc2453aa304046ddd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-03-28  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        obstack: Work around ICE with Oracle cc 12.6 (regr. 2023-12-01).
index d597553b580e5990e05f972ef0b9bc94e7d3f15b..28a2206b959b5966c59c92b11db32660a8879dad 100644 (file)
@@ -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
        ],