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>
This commit is contained in:
parent
e3b90b7d36
commit
824264d162
|
@ -0,0 +1,33 @@
|
|||
From b6972f1c29ebf073cbe19a4a669ee093259792a0 Mon Sep 17 00:00:00 2001
|
||||
From: Fabio Berton <fabio.berton@ossystems.com.br>
|
||||
Date: Mon, 30 Jan 2017 12:00:33 -0200
|
||||
Subject: [PATCH] src/libbsd-overlay.pc.in: Set Cflags to use -I instead of
|
||||
-isystem
|
||||
Organization: O.S. Systems Software LTDA.
|
||||
|
||||
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
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
|
||||
---
|
||||
src/libbsd-overlay.pc.in | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/libbsd-overlay.pc.in b/src/libbsd-overlay.pc.in
|
||||
index ac8bf89..65dc3ae 100644
|
||||
--- a/src/libbsd-overlay.pc.in
|
||||
+++ b/src/libbsd-overlay.pc.in
|
||||
@@ -8,4 +8,4 @@ Description: Utility functions from BSD systems (overlay)
|
||||
Version: @VERSION@
|
||||
URL: https://libbsd.freedesktop.org/
|
||||
Libs: -L${libdir} -lbsd
|
||||
-Cflags: -isystem ${includedir}/bsd -DLIBBSD_OVERLAY
|
||||
+Cflags: -I${includedir}/bsd -DLIBBSD_OVERLAY
|
||||
--
|
||||
2.11.0
|
||||
|
|
@ -35,6 +35,7 @@ SECTION = "libs"
|
|||
|
||||
SRC_URI = " \
|
||||
http://libbsd.freedesktop.org/releases/${BPN}-${PV}.tar.xz \
|
||||
file://0001-src-libbsd-overlay.pc.in-Set-Cflags-to-use-I-instead.patch \
|
||||
"
|
||||
SRC_URI_append_libc-musl = " \
|
||||
file://0001-Replace-__BEGIN_DECLS-and-__END_DECLS.patch \
|
||||
|
|
Loading…
Reference in New Issue