Patchwork cross-localedef-native: Fix case where ${B} != ${S}

login
register
mail settings
Submitter Richard Purdie
Date March 18, 2013, 1:13 a.m.
Message ID <1363569210.4315.26.camel@ted>
Download mbox | patch
Permalink /patch/46319/
State Accepted
Commit de258a9e90d2cc043c3cddc62dccdc1bff8c86ee
Headers show

Comments

Richard Purdie - March 18, 2013, 1:13 a.m.
This change allows ${B} != ${S} builds to work since otherwise configure
isn't found.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---

Patch

diff --git a/meta/recipes-core/eglibc/cross-localedef-native_2.17.bb b/meta/recipes-core/eglibc/cross-localedef-native_2.17.bb
index 0fedfad..1d3c22b 100644
--- a/meta/recipes-core/eglibc/cross-localedef-native_2.17.bb
+++ b/meta/recipes-core/eglibc/cross-localedef-native_2.17.bb
@@ -39,11 +39,11 @@  EXTRA_OECONF = "--with-glibc=${WORKDIR}/eglibc-${PV}/libc"
 CFLAGS += "-DNOT_IN_libc=1"
 
 do_configure () {
-	./configure ${EXTRA_OECONF}
+	${S}/configure ${EXTRA_OECONF}
 }
 
 
 do_install() {
 	install -d ${D}${bindir} 
-	install -m 0755 ${S}/localedef ${D}${bindir}/cross-localedef
+	install -m 0755 ${B}/localedef ${D}${bindir}/cross-localedef
 }