diff options
author | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2017-07-27 12:45:39 -0700 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2017-08-07 21:47:23 +0000 |
commit | 2f0d4efa200a23dafadd648dabfc477c872a3175 (patch) | |
tree | 9726a3988092724a2f6fbfff2ed688b6e4a003ca /util/crossgcc/patches/libelf-0.8.14_64bit_detection.patch | |
parent | dcce8bef0e969650f42b73345cc2382f051675df (diff) |
buildgcc: Fix libelf 64bit detection
Taken from crosstool-ng and and re-applied to 0.8.13
Change-Id: I43ad23b66ec10915cc68be8c395825f4f9161725
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-on: https://review.coreboot.org/20800
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'util/crossgcc/patches/libelf-0.8.14_64bit_detection.patch')
-rw-r--r-- | util/crossgcc/patches/libelf-0.8.14_64bit_detection.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/util/crossgcc/patches/libelf-0.8.14_64bit_detection.patch b/util/crossgcc/patches/libelf-0.8.14_64bit_detection.patch new file mode 100644 index 0000000000..d80d1c4622 --- /dev/null +++ b/util/crossgcc/patches/libelf-0.8.14_64bit_detection.patch @@ -0,0 +1,28 @@ +libelf-0.8.13: Fix libelf 64bit detection + +Taken from crosstool-ng and and re-applied to 0.8.13 + +diff -urN libelf-0.8.13.orig/configure libelf-0.8.13/configure +--- libelf-0.8.13.orig/configure 2008-05-23 01:18:03.000000000 -0700 ++++ libelf-0.8.13/configure 2017-07-27 12:41:43.417835628 -0700 +@@ -1595,7 +1595,7 @@ + echo $ac_n "(cached) $ac_c" 1>&6 + else + if test "$cross_compiling" = yes; then +- ac_cv_sizeof_long_long=0 ++ ac_cv_sizeof_long_long=8 + else + cat > conftest.$ac_ext <<EOF + #line 1602 "configure" +diff -urN libelf-0.8.13.orig/configure.in libelf-0.8.13/configure.in +--- libelf-0.8.13.orig/configure.in 2008-05-23 01:17:56.000000000 -0700 ++++ libelf-0.8.13/configure.in 2017-07-27 12:41:43.421835676 -0700 +@@ -90,7 +90,7 @@ + AC_CHECK_SIZEOF(short,2) + AC_CHECK_SIZEOF(int,4) + AC_CHECK_SIZEOF(long,4) +-AC_CHECK_SIZEOF(long long,0) ++AC_CHECK_SIZEOF(long long,8) + # Windows port + AC_CHECK_SIZEOF(__int64, 0) + |