diff options
author | Khem Raj <raj.khem@gmail.com> | 2015-04-06 17:36:43 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-05-15 18:12:41 +0100 |
commit | f416e2b9bb706b1a7de792b9033016f7683cf62e (patch) | |
tree | 231da07ba44086bcf1a6b01051f8143bbb60498c /meta/recipes-gnome | |
parent | 0c045cab74be20caf8a4469dd560c466f12c9ba7 (diff) | |
download | poky-f416e2b9bb706b1a7de792b9033016f7683cf62e.tar.gz |
libffi: Use proper compiler define for linux platform
Change-Id: I8253249a2e1c5e9ded0d028545f21cfdc093c3cd
(From OE-Core master rev: f7307ea20c8aa4aed4c38a7c15fb9b3b6b836035)
(From OE-Core rev: df99dd90255e46b226f4eea7b3c0d81f548adaf9)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-gnome')
-rw-r--r-- | meta/recipes-gnome/libffi/libffi/0001-mips-Use-compiler-internal-define-for-linux.patch | 32 | ||||
-rw-r--r-- | meta/recipes-gnome/libffi/libffi_3.2.1.bb | 4 |
2 files changed, 35 insertions, 1 deletions
diff --git a/meta/recipes-gnome/libffi/libffi/0001-mips-Use-compiler-internal-define-for-linux.patch b/meta/recipes-gnome/libffi/libffi/0001-mips-Use-compiler-internal-define-for-linux.patch new file mode 100644 index 0000000000..db96e63547 --- /dev/null +++ b/meta/recipes-gnome/libffi/libffi/0001-mips-Use-compiler-internal-define-for-linux.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From a5efaa96fd934eb245c234a5275fcf62698ef986 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 2 Apr 2015 21:38:03 -0700 | ||
4 | Subject: [PATCH] mips: Use compiler internal define for linux | ||
5 | |||
6 | __linux__ is defined by compiler when building for | ||
7 | linux platforms, lets use it | ||
8 | |||
9 | |||
10 | Upstream-Status: Pending | ||
11 | |||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | --- | ||
14 | src/mips/ffitarget.h | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/src/mips/ffitarget.h b/src/mips/ffitarget.h | ||
18 | index 717d659..6faa358 100644 | ||
19 | --- a/src/mips/ffitarget.h | ||
20 | +++ b/src/mips/ffitarget.h | ||
21 | @@ -32,7 +32,7 @@ | ||
22 | #error "Please do not include ffitarget.h directly into your source. Use ffi.h instead." | ||
23 | #endif | ||
24 | |||
25 | -#ifdef linux | ||
26 | +#ifdef __linux__ | ||
27 | # include <asm/sgidefs.h> | ||
28 | #elif defined(__rtems__) | ||
29 | /* | ||
30 | -- | ||
31 | 2.1.4 | ||
32 | |||
diff --git a/meta/recipes-gnome/libffi/libffi_3.2.1.bb b/meta/recipes-gnome/libffi/libffi_3.2.1.bb index 23028109cc..fd916caf7e 100644 --- a/meta/recipes-gnome/libffi/libffi_3.2.1.bb +++ b/meta/recipes-gnome/libffi/libffi_3.2.1.bb | |||
@@ -10,7 +10,9 @@ LICENSE = "MIT" | |||
10 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3610bb17683a0089ed64055416b2ae1b" | 10 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3610bb17683a0089ed64055416b2ae1b" |
11 | 11 | ||
12 | SRC_URI = "ftp://sourceware.org/pub/libffi/${BP}.tar.gz \ | 12 | SRC_URI = "ftp://sourceware.org/pub/libffi/${BP}.tar.gz \ |
13 | file://fix-libffi.la-location.patch" | 13 | file://fix-libffi.la-location.patch \ |
14 | file://0001-mips-Use-compiler-internal-define-for-linux.patch \ | ||
15 | " | ||
14 | 16 | ||
15 | SRC_URI[md5sum] = "83b89587607e3eb65c70d361f13bab43" | 17 | SRC_URI[md5sum] = "83b89587607e3eb65c70d361f13bab43" |
16 | SRC_URI[sha256sum] = "d06ebb8e1d9a22d19e38d63fdb83954253f39bedc5d46232a05645685722ca37" | 18 | SRC_URI[sha256sum] = "d06ebb8e1d9a22d19e38d63fdb83954253f39bedc5d46232a05645685722ca37" |