diff options
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils/0016-Check-for-clang-before-checking-gcc-version.patch')
-rw-r--r-- | meta/recipes-devtools/binutils/binutils/0016-Check-for-clang-before-checking-gcc-version.patch | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/meta/recipes-devtools/binutils/binutils/0016-Check-for-clang-before-checking-gcc-version.patch b/meta/recipes-devtools/binutils/binutils/0016-Check-for-clang-before-checking-gcc-version.patch index 400b79823f..0602c803db 100644 --- a/meta/recipes-devtools/binutils/binutils/0016-Check-for-clang-before-checking-gcc-version.patch +++ b/meta/recipes-devtools/binutils/binutils/0016-Check-for-clang-before-checking-gcc-version.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From ae5a7d622dc9addb2ca9fc85889c45964c025a9c Mon Sep 17 00:00:00 2001 | 1 | From 805e3ce0c20bee5049ff167ab6f620a230c6db51 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 15 Apr 2020 14:17:20 -0700 | 3 | Date: Wed, 15 Apr 2020 14:17:20 -0700 |
4 | Subject: [PATCH 16/17] Check for clang before checking gcc version | 4 | Subject: [PATCH] Check for clang before checking gcc version |
5 | 5 | ||
6 | Clang advertises itself to be gcc 4.2.1, so when compiling this test | 6 | Clang advertises itself to be gcc 4.2.1, so when compiling this test |
7 | here fails since gcc < 4.4.5 did not support -static-libstdc++ but thats | 7 | here fails since gcc < 4.4.5 did not support -static-libstdc++ but thats |
@@ -18,10 +18,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
18 | 2 files changed, 2 insertions(+), 2 deletions(-) | 18 | 2 files changed, 2 insertions(+), 2 deletions(-) |
19 | 19 | ||
20 | diff --git a/configure b/configure | 20 | diff --git a/configure b/configure |
21 | index 6782f8b6ab8..72f5766b363 100755 | 21 | index 7b369071141..7da69e27ce9 100755 |
22 | --- a/configure | 22 | --- a/configure |
23 | +++ b/configure | 23 | +++ b/configure |
24 | @@ -5143,7 +5143,7 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 24 | @@ -5093,7 +5093,7 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
25 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 25 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
26 | /* end confdefs.h. */ | 26 | /* end confdefs.h. */ |
27 | 27 | ||
@@ -31,10 +31,10 @@ index 6782f8b6ab8..72f5766b363 100755 | |||
31 | #endif | 31 | #endif |
32 | int main() {} | 32 | int main() {} |
33 | diff --git a/configure.ac b/configure.ac | 33 | diff --git a/configure.ac b/configure.ac |
34 | index 55beb1dea46..3f9e613e2d9 100644 | 34 | index 92f01fb3ed7..e99d67ab86b 100644 |
35 | --- a/configure.ac | 35 | --- a/configure.ac |
36 | +++ b/configure.ac | 36 | +++ b/configure.ac |
37 | @@ -1312,7 +1312,7 @@ if test "$GCC" = yes; then | 37 | @@ -1311,7 +1311,7 @@ if test "$GCC" = yes; then |
38 | AC_MSG_CHECKING([whether g++ accepts -static-libstdc++ -static-libgcc]) | 38 | AC_MSG_CHECKING([whether g++ accepts -static-libstdc++ -static-libgcc]) |
39 | AC_LANG_PUSH(C++) | 39 | AC_LANG_PUSH(C++) |
40 | AC_LINK_IFELSE([AC_LANG_SOURCE([ | 40 | AC_LINK_IFELSE([AC_LANG_SOURCE([ |
@@ -43,6 +43,3 @@ index 55beb1dea46..3f9e613e2d9 100644 | |||
43 | #error -static-libstdc++ not implemented | 43 | #error -static-libstdc++ not implemented |
44 | #endif | 44 | #endif |
45 | int main() {}])], | 45 | int main() {}])], |
46 | -- | ||
47 | 2.28.0 | ||
48 | |||