mirror of
https://git.yoctoproject.org/poky
synced 2026-09-20 12:49:33 +02:00
Brings following fixes.
* 553c7f61b74 x86: Display -msse-check= default as none
* 4f7d1d2d5ec PowerPC: Add support for Power11 options
* 3c1f1c35784 x86-64: Add R_X86_64_CODE_6_GOTTPOFF
* c426c8e307a x86/APX: VROUND{P,S}{S,D} encodings require AVX512{F,VL}
* 78f9e9faaa4 PR31208, strip can break ELF alignment requirements
* e19278f72bd PR 31283 windmc: Parse input correctly on big endian hosts
* b76b8983116 Link x86-64 mark-plt-1.so with --no-as-needed
* e92e2d654bf LoongArch: gas: Fix the types of symbols referred with %le_*_r in the symtab
(From OE-Core rev: 1e24197070abbeabfca1883975b9996f29898745)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
46 lines
1.6 KiB
Diff
46 lines
1.6 KiB
Diff
From cad852e0ed46a1c26607f9e7d17cc5974b05e38a 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] 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 670684d83d1..f9ba1c0a4f7 100755
|
|
--- a/configure
|
|
+++ b/configure
|
|
@@ -5432,7 +5432,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 88b4800e298..6cd4530db56 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -1410,7 +1410,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() {}])],
|