diff options
author | Fabio Berton <fabio.berton@ossystems.com.br> | 2017-01-30 14:27:00 -0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-02-05 09:22:16 +0000 |
commit | 824264d1621d7ba27be63c52c3842207b9df32a9 (patch) | |
tree | c0af994d480bc8958cc12a41802847a8eeaac634 /meta/recipes-support | |
parent | e3b90b7d36972c2fd79f0691de6201f305375bb8 (diff) | |
download | poky-824264d1621d7ba27be63c52c3842207b9df32a9.tar.gz |
libbsd: libbsd-overlay.pc: Set Cflags to use -I instead of -isystem
pkg-config currently only handles -I and -L correctly, but misses
-isystem, so we need to do this workaround to fix this issue.
There's a open bug in:
https://bugzilla.freedesktop.org/show_bug.cgi?id=99516
This appears when building lldpd and shows error:
ERROR: lldpd-0.9.6-r0 do_configure: This autoconf log indicates
errors, it looked at host include and/or library paths while
determining system capabilities.
Rerun configure task after fixing this.
ERROR: lldpd-0.9.6-r0 do_configure: Function failed: do_qa_configure
Change-Id: I83255b5952e19bb2f516b1186276cd03eb67eed3
(From OE-Core rev: 5bd23c01fd800c43ba3979b23585fe8ac30d7ec8)
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r-- | meta/recipes-support/libbsd/libbsd/0001-src-libbsd-overlay.pc.in-Set-Cflags-to-use-I-instead.patch | 33 | ||||
-rw-r--r-- | meta/recipes-support/libbsd/libbsd_0.8.3.bb | 1 |
2 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-support/libbsd/libbsd/0001-src-libbsd-overlay.pc.in-Set-Cflags-to-use-I-instead.patch b/meta/recipes-support/libbsd/libbsd/0001-src-libbsd-overlay.pc.in-Set-Cflags-to-use-I-instead.patch new file mode 100644 index 0000000000..7e3a5b3be4 --- /dev/null +++ b/meta/recipes-support/libbsd/libbsd/0001-src-libbsd-overlay.pc.in-Set-Cflags-to-use-I-instead.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From b6972f1c29ebf073cbe19a4a669ee093259792a0 Mon Sep 17 00:00:00 2001 | ||
2 | From: Fabio Berton <fabio.berton@ossystems.com.br> | ||
3 | Date: Mon, 30 Jan 2017 12:00:33 -0200 | ||
4 | Subject: [PATCH] src/libbsd-overlay.pc.in: Set Cflags to use -I instead of | ||
5 | -isystem | ||
6 | Organization: O.S. Systems Software LTDA. | ||
7 | |||
8 | pkg-config currently only handles -I and -L correctly, but misses | ||
9 | -isystem, so we need to do this workaround to fix this issue. | ||
10 | |||
11 | There's a open bug in: | ||
12 | https://bugzilla.freedesktop.org/show_bug.cgi?id=99516 | ||
13 | |||
14 | Upstream-Status: Pending | ||
15 | |||
16 | Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> | ||
17 | --- | ||
18 | src/libbsd-overlay.pc.in | 2 +- | ||
19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
20 | |||
21 | diff --git a/src/libbsd-overlay.pc.in b/src/libbsd-overlay.pc.in | ||
22 | index ac8bf89..65dc3ae 100644 | ||
23 | --- a/src/libbsd-overlay.pc.in | ||
24 | +++ b/src/libbsd-overlay.pc.in | ||
25 | @@ -8,4 +8,4 @@ Description: Utility functions from BSD systems (overlay) | ||
26 | Version: @VERSION@ | ||
27 | URL: https://libbsd.freedesktop.org/ | ||
28 | Libs: -L${libdir} -lbsd | ||
29 | -Cflags: -isystem ${includedir}/bsd -DLIBBSD_OVERLAY | ||
30 | +Cflags: -I${includedir}/bsd -DLIBBSD_OVERLAY | ||
31 | -- | ||
32 | 2.11.0 | ||
33 | |||
diff --git a/meta/recipes-support/libbsd/libbsd_0.8.3.bb b/meta/recipes-support/libbsd/libbsd_0.8.3.bb index fadd7886a2..e85ee2153d 100644 --- a/meta/recipes-support/libbsd/libbsd_0.8.3.bb +++ b/meta/recipes-support/libbsd/libbsd_0.8.3.bb | |||
@@ -35,6 +35,7 @@ SECTION = "libs" | |||
35 | 35 | ||
36 | SRC_URI = " \ | 36 | SRC_URI = " \ |
37 | http://libbsd.freedesktop.org/releases/${BPN}-${PV}.tar.xz \ | 37 | http://libbsd.freedesktop.org/releases/${BPN}-${PV}.tar.xz \ |
38 | file://0001-src-libbsd-overlay.pc.in-Set-Cflags-to-use-I-instead.patch \ | ||
38 | " | 39 | " |
39 | SRC_URI_append_libc-musl = " \ | 40 | SRC_URI_append_libc-musl = " \ |
40 | file://0001-Replace-__BEGIN_DECLS-and-__END_DECLS.patch \ | 41 | file://0001-Replace-__BEGIN_DECLS-and-__END_DECLS.patch \ |