diff options
-rw-r--r-- | meta/recipes-support/gmp/gmp-5.1.1/build-fix-for-x86-64-with-gcc-5.x.patch | 35 | ||||
-rw-r--r-- | meta/recipes-support/gmp/gmp_5.1.1.bb | 1 |
2 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-support/gmp/gmp-5.1.1/build-fix-for-x86-64-with-gcc-5.x.patch b/meta/recipes-support/gmp/gmp-5.1.1/build-fix-for-x86-64-with-gcc-5.x.patch new file mode 100644 index 00000000000..81e757a59b7 --- /dev/null +++ b/meta/recipes-support/gmp/gmp-5.1.1/build-fix-for-x86-64-with-gcc-5.x.patch @@ -0,0 +1,35 @@ +From b811ffc7a4463cac817af323cf95c316cc397905 Mon Sep 17 00:00:00 2001 +From: Andre McCurdy <armccurdy@gmail.com> +Date: Fri, 19 Oct 2018 19:50:20 -0700 +Subject: [PATCH] build fix for x86-64 with gcc 5.x + +Backport fix from gmp 5.1.2: + +2013-02-16 Torbjorn Granlund <tege@gmplib.org> + + * mpn/x86_64/x86_64-defs.m4 (PROTECT): Emit '.hidden' instead of + '.protected" to please Sun's assembler, but also for semantic reasons. + +Upstream-Status: Backport + +Signed-off-by: Andre McCurdy <armccurdy@gmail.com> +--- + mpn/x86_64/x86_64-defs.m4 | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/mpn/x86_64/x86_64-defs.m4 b/mpn/x86_64/x86_64-defs.m4 +index 748bc61..b4ff2cb 100644 +--- a/mpn/x86_64/x86_64-defs.m4 ++++ b/mpn/x86_64/x86_64-defs.m4 +@@ -218,7 +218,7 @@ dnl Used for private GMP symbols that should never be overridden by users. + dnl This can save reloc entries and improve shlib sharing as well as + dnl application startup times + +-define(`PROTECT', `.protected $1') ++define(`PROTECT', `.hidden $1') + + + dnl Usage: x86_lookup(target, key,value, key,value, ...) +-- +2.7.4 + diff --git a/meta/recipes-support/gmp/gmp_5.1.1.bb b/meta/recipes-support/gmp/gmp_5.1.1.bb index 602061096aa..76a752b8646 100644 --- a/meta/recipes-support/gmp/gmp_5.1.1.bb +++ b/meta/recipes-support/gmp/gmp_5.1.1.bb @@ -5,6 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ SRC_URI_append = " file://use-includedir.patch \ file://append_user_provided_flags.patch \ + file://build-fix-for-x86-64-with-gcc-5.x.patch \ " SRC_URI[md5sum] = "2fa018a7cd193c78494525f236d02dd6" |