[OE-core] [PATCH 2/2] mtools: add PACKAGECONFIG for libbsd
Robert Yang
liezhi.yang at windriver.com
Wed Jun 10 07:34:20 UTC 2015
Fixed:
ld: cannot find -lbsd
collect2: error: ld returned 1 exit status
Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
---
meta/recipes-devtools/mtools/mtools_3.9.9.bb | 3 +++
meta/recipes-devtools/mtools/mtools_4.0.18.bb | 3 +++
2 files changed, 6 insertions(+)
diff --git a/meta/recipes-devtools/mtools/mtools_3.9.9.bb b/meta/recipes-devtools/mtools/mtools_3.9.9.bb
index 9cd1c57..c284a71 100644
--- a/meta/recipes-devtools/mtools/mtools_3.9.9.bb
+++ b/meta/recipes-devtools/mtools/mtools_3.9.9.bb
@@ -46,6 +46,9 @@ EXTRA_OECONF = "--without-x"
BBCLASSEXTEND = "native nativesdk"
+PACKAGECONFIG ??= ""
+PACKAGECONFIG[libbsd] = "ac_cv_lib_bsd_main=yes,ac_cv_lib_bsd_main=no,libbsd"
+
do_install_prepend () {
# Create bindir to fix parallel installation issues
mkdir -p ${D}/${bindir}
diff --git a/meta/recipes-devtools/mtools/mtools_4.0.18.bb b/meta/recipes-devtools/mtools/mtools_4.0.18.bb
index b2cfe9a..52decfd 100644
--- a/meta/recipes-devtools/mtools/mtools_4.0.18.bb
+++ b/meta/recipes-devtools/mtools/mtools_4.0.18.bb
@@ -37,6 +37,9 @@ EXTRA_OECONF = "--without-x"
BBCLASSEXTEND = "native nativesdk"
+PACKAGECONFIG ??= ""
+PACKAGECONFIG[libbsd] = "ac_cv_lib_bsd_main=yes,ac_cv_lib_bsd_main=no,libbsd"
+
do_install_prepend () {
# Create bindir to fix parallel installation issues
mkdir -p ${D}/${bindir}
--
1.7.9.5
More information about the Openembedded-core
mailing list