diff options
| author | Khem Raj <raj.khem@gmail.com> | 2017-10-16 21:26:40 -0700 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-10-20 16:14:55 +0000 |
| commit | 738bea45bc51d9a78a3d46ee8c18390427ccd547 (patch) | |
| tree | a758f99d89daacbf020e4ae93c96360fe4728b3c /meta-oe | |
| parent | 084db496b4973cd65e2a09ec93b4d7500a4eed50 (diff) | |
| download | meta-openembedded-738bea45bc51d9a78a3d46ee8c18390427ccd547.tar.gz | |
gperftools: Fix build on musl/mips
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe')
| -rw-r--r-- | meta-oe/recipes-support/gperftools/gperftools/sgidef.patch | 17 | ||||
| -rw-r--r-- | meta-oe/recipes-support/gperftools/gperftools_2.6.1.bb | 1 |
2 files changed, 18 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/gperftools/gperftools/sgidef.patch b/meta-oe/recipes-support/gperftools/gperftools/sgidef.patch new file mode 100644 index 0000000000..7e1a23bf68 --- /dev/null +++ b/meta-oe/recipes-support/gperftools/gperftools/sgidef.patch | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | sgidef.h does not exist on musl and its not needed to compile | ||
| 2 | |||
| 3 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 4 | Upstream-Status: Pending | ||
| 5 | Index: git/src/base/linux_syscall_support.h | ||
| 6 | =================================================================== | ||
| 7 | --- git.orig/src/base/linux_syscall_support.h | ||
| 8 | +++ git/src/base/linux_syscall_support.h | ||
| 9 | @@ -164,7 +164,7 @@ extern "C" { | ||
| 10 | #include <endian.h> | ||
| 11 | #include <fcntl.h> | ||
| 12 | |||
| 13 | -#ifdef __mips__ | ||
| 14 | +#if defined(__mips__) && defined(__glibc__) | ||
| 15 | /* Include definitions of the ABI currently in use. */ | ||
| 16 | #include <sgidefs.h> | ||
| 17 | #endif | ||
diff --git a/meta-oe/recipes-support/gperftools/gperftools_2.6.1.bb b/meta-oe/recipes-support/gperftools/gperftools_2.6.1.bb index 8ce376c91d..ecac6c5cc8 100644 --- a/meta-oe/recipes-support/gperftools/gperftools_2.6.1.bb +++ b/meta-oe/recipes-support/gperftools/gperftools_2.6.1.bb | |||
| @@ -12,6 +12,7 @@ SRC_URI = "git://github.com/gperftools/gperftools \ | |||
| 12 | file://0001-include-fcntl.h-for-loff_t-definition.patch \ | 12 | file://0001-include-fcntl.h-for-loff_t-definition.patch \ |
| 13 | file://0001-disbale-heap-checkers-and-debug-allocator-on-musl.patch \ | 13 | file://0001-disbale-heap-checkers-and-debug-allocator-on-musl.patch \ |
| 14 | file://disable_libunwind_aarch64.patch \ | 14 | file://disable_libunwind_aarch64.patch \ |
| 15 | file://sgidef.patch \ | ||
| 15 | " | 16 | " |
| 16 | 17 | ||
| 17 | inherit autotools | 18 | inherit autotools |
