1From 10cd0c12a6e14fb4f0498c299c1dd32720b710da Mon Sep 17 00:00:00 2001
2From: Nathan Rossi <nathan@nathanrossi.com>
3Date: Mon, 14 Dec 2020 13:39:02 +1000
4Subject: [PATCH] gen-pkgconfig.in: Do not include LDFLAGS in generated pc
5 files
6
7Including the LDFLAGS in the pkgconfig output is problematic as OE
8includes build host specific paths and options (e.g. uninative and
9'-Wl,--dynamic-linker=').
10
11Upstream-Status: Inappropriate [OE Specific]
12Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
13
14---
15 misc/gen-pkgconfig.in | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/misc/gen-pkgconfig.in b/misc/gen-pkgconfig.in
19index a45dd54f..85273054 100644
20--- a/misc/gen-pkgconfig.in
21+++ b/misc/gen-pkgconfig.in
22@@ -83,7 +83,7 @@ if [ "$includedir" != "/usr/include" ]; then
23 fi
24
25 lib_flags=
26-for opt in -L$libdir @EXTRA_PKG_LDFLAGS@ @LIBS@
27+for opt in -L$libdir @LIBS@
28 do
29 	case $opt in
30 	-l*) # LIBS is handled specially below
31