blob: 1eb17767a0aaedb7dc5a60876a68b62fd2f8a954 [file] [log] [blame]
Andrew Geisslerc723b722021-01-08 16:14:09 -06001From 3b3e87934bb6d8511261d7c3d6e39b4f71849272 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 misc/gen-pkgconfig.in | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/misc/gen-pkgconfig.in b/misc/gen-pkgconfig.in
18index 8f00b824b9..009d215663 100644
19--- a/misc/gen-pkgconfig.in
20+++ b/misc/gen-pkgconfig.in
21@@ -80,7 +80,7 @@ if [ "$includedir" != "/usr/include" ]; then
22 fi
23
24 lib_flags=
25-for opt in -L$libdir @LDFLAGS@ @EXTRA_LDFLAGS@ @LIBS@
26+for opt in -L$libdir @LIBS@
27 do
28 case $opt in
29 -l*) # LIBS is handled specially below