summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-07-25 16:20:22 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-07-26 08:40:59 +0100
commit2ab5a34357b86be19a1b1a85eac54fa0cf1e7fd2 (patch)
tree5ffe73ed310ad24c3b16a7069afc33772dfeca6e
parentdded7fc1bc7caf22837d13dabbc66b84b15b872b (diff)
downloadopenembedded-core-contrib-2ab5a34357b86be19a1b1a85eac54fa0cf1e7fd2.tar.gz
openembedded-core-contrib-2ab5a34357b86be19a1b1a85eac54fa0cf1e7fd2.tar.bz2
openembedded-core-contrib-2ab5a34357b86be19a1b1a85eac54fa0cf1e7fd2.zip
libidn2: remove build paths from libidn2.pc
The libunistring m4 macros end up putting the full build-time library path into the .pc file, which is no good on target. Sed it out to stop build paths leaking onto the target. [ YOCTO #13403 ] Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-extended/libidn/libidn2_2.2.0.bb4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-extended/libidn/libidn2_2.2.0.bb b/meta/recipes-extended/libidn/libidn2_2.2.0.bb
index d7fec89fba..bcbfdd85b9 100644
--- a/meta/recipes-extended/libidn/libidn2_2.2.0.bb
+++ b/meta/recipes-extended/libidn/libidn2_2.2.0.bb
@@ -21,6 +21,10 @@ EXTRA_OECONF += "--disable-rpath \
--with-libunistring-prefix=${STAGING_EXECPREFIXDIR} \
"
+do_install_append() {
+ sed -i -e 's|-L${STAGING_LIBDIR}||' ${D}${libdir}/pkgconfig/libidn2.pc
+}
+
LICENSE_${PN} = "(GPLv2+ | LGPLv3)"
LICENSE_${PN}-bin = "GPLv3+"