]> Savannah Git Hosting - gnulib.git/commitdiff
havelib: Recognize ELF platform despite nvc 22.1.
authorBruno Haible <bruno@clisp.org>
Sat, 15 Jan 2022 22:08:47 +0000 (23:08 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 15 Jan 2022 22:08:47 +0000 (23:08 +0100)
* m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Recognize Linux as an ELF
platform, even with a compiler that does not define __ELF__.

ChangeLog
m4/lib-prefix.m4

index 0eef9f4c9adcfd24f3baacae1094610480b70ef4..7b6c962de878bf3ceb78542728c66ab88beb6588 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-01-15  Bruno Haible  <bruno@clisp.org>
+
+       havelib: Recognize ELF platform despite nvc 22.1.
+       * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Recognize Linux as an ELF
+       platform, even with a compiler that does not define __ELF__.
+
 2022-01-15  Bruno Haible  <bruno@clisp.org>
 
        oset-c++: Avoid compilation error with nvc++ 22.1.
index 75071e9a96c0e9d222164948c5ef79e874eb9e70..999f712f5acd4102385e4eadedf78913aa773a5f 100644 (file)
@@ -1,4 +1,4 @@
-# lib-prefix.m4 serial 19
+# lib-prefix.m4 serial 20
 dnl Copyright (C) 2001-2005, 2008-2022 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],
-       [#ifdef __ELF__
+       [#if defined __ELF__ || (defined __linux__ && defined __EDG__)
         Extensible Linking Format
         #endif
        ],