hplip: needs dynamic library
[buildroot-gz.git] / package / jemalloc / 0001-Fix-LG_QUANTUM-definition-for-sparc64.patch
blobef5b857d41b8c4e4426903483543fa9c201986ab
1 From b3211bd6363ee6884c8db64008dc325a9c711bfb Mon Sep 17 00:00:00 2001
2 From: Eric Le Bihan <eric.le.bihan.dev@free.fr>
3 Date: Thu, 14 Jul 2016 22:44:01 +0200
4 Subject: [PATCH] Fix LG_QUANTUM definition for sparc64
6 GCC 4.9.3 cross-compiled for sparc64 defines __sparc_v9__, not
7 __sparc64__ nor __sparcv9. This prevents LG_QUANTUM from being defined
8 properly. Adding this new value to the check solves the issue.
10 Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
11 ---
12 include/jemalloc/internal/jemalloc_internal.h.in | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
15 diff --git a/include/jemalloc/internal/jemalloc_internal.h.in b/include/jemalloc/internal/jemalloc_internal.h.in
16 index 51bf897..ece15b2 100644
17 --- a/include/jemalloc/internal/jemalloc_internal.h.in
18 +++ b/include/jemalloc/internal/jemalloc_internal.h.in
19 @@ -234,7 +234,7 @@ typedef unsigned szind_t;
20 # ifdef __alpha__
21 # define LG_QUANTUM 4
22 # endif
23 -# if (defined(__sparc64__) || defined(__sparcv9))
24 +# if (defined(__sparc64__) || defined(__sparcv9) || defined(__sparc_v9__))
25 # define LG_QUANTUM 4
26 # endif
27 # if (defined(__amd64__) || defined(__x86_64__) || defined(_M_X64))
28 --
29 2.4.11