mirror of
https://git.yoctoproject.org/poky
synced 2026-03-11 01:39:40 +01:00
assembler supports dwarf-5 format line numbers linker has -M -MP gcc-like option for detailed release notes see [1] [1] https://lists.gnu.org/archive/html/info-gnu/2020-07/msg00008.html (From OE-Core rev: 7a7667127625244aae2b1ff179e431fc9ad25737) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
49 lines
1.6 KiB
Diff
49 lines
1.6 KiB
Diff
From ae5a7d622dc9addb2ca9fc85889c45964c025a9c Mon Sep 17 00:00:00 2001
|
|
From: Khem Raj <raj.khem@gmail.com>
|
|
Date: Wed, 15 Apr 2020 14:17:20 -0700
|
|
Subject: [PATCH 16/17] Check for clang before checking gcc version
|
|
|
|
Clang advertises itself to be gcc 4.2.1, so when compiling this test
|
|
here fails since gcc < 4.4.5 did not support -static-libstdc++ but thats
|
|
not true for clang, so its better to make an additional check for clang
|
|
before resorting to gcc version check. This should let clang enable
|
|
static libstdc++ linking
|
|
|
|
Upstream-Status: Pending
|
|
|
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
---
|
|
configure | 2 +-
|
|
configure.ac | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/configure b/configure
|
|
index 6782f8b6ab8..72f5766b363 100755
|
|
--- a/configure
|
|
+++ b/configure
|
|
@@ -5143,7 +5143,7 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
-#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
|
|
+#if !defined(__clang__) && ((__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5))
|
|
#error -static-libstdc++ not implemented
|
|
#endif
|
|
int main() {}
|
|
diff --git a/configure.ac b/configure.ac
|
|
index 55beb1dea46..3f9e613e2d9 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -1312,7 +1312,7 @@ if test "$GCC" = yes; then
|
|
AC_MSG_CHECKING([whether g++ accepts -static-libstdc++ -static-libgcc])
|
|
AC_LANG_PUSH(C++)
|
|
AC_LINK_IFELSE([AC_LANG_SOURCE([
|
|
-#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
|
|
+#if !defined(__clang__) && ((__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5))
|
|
#error -static-libstdc++ not implemented
|
|
#endif
|
|
int main() {}])],
|
|
--
|
|
2.28.0
|
|
|