From 2f0d4efa200a23dafadd648dabfc477c872a3175 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Thu, 27 Jul 2017 12:45:39 -0700 Subject: [PATCH] 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 Reviewed-on: https://review.coreboot.org/20800 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Ronald G. Minnich --- .../libelf-0.8.14_64bit_detection.patch | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 util/crossgcc/patches/libelf-0.8.14_64bit_detection.patch 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 <