[oe] [PATCH] fix do_install for MinGW gcc-canadian-sdk

David Huggins-Daines dhuggins at cs.cmu.edu
Thu Apr 16 20:03:03 UTC 2009


When building a Canadian cross SDK for a MinGW host, installation of
gcc-canadian-sdk fails, because it is configured using a Windows path
as its ${prefix}.  Therefore it's not sufficient to use DESTDIR to
install it; this leads to it being installed in ${DESTDIR}C: which
is not where the rest of the recipe expects it.

This patch forces it to use the Unix ${prefix} variable, which has
no drive letter, for installation.  I'm not 100% certain this is the
right solution but it doesn't seem to break normal SDK builds.

---
 recipes/gcc/gcc-package-sdk.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/recipes/gcc/gcc-package-sdk.inc b/recipes/gcc/gcc-package-sdk.inc
index 0dc19c7..17d44a1 100644
--- a/recipes/gcc/gcc-package-sdk.inc
+++ b/recipes/gcc/gcc-package-sdk.inc
@@ -29,7 +29,7 @@ FILES_${PN}-doc = "\
     "
 
 do_install () {
-	oe_runmake 'DESTDIR=${D}' install
+	oe_runmake 'DESTDIR=${D}' 'prefix=${prefix}' install
 
 	# Cleanup some of the ${libdir}{,exec}/gcc stuff ...
 	rm -r ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/install-tools
-- 
1.5.6.3





More information about the Openembedded-devel mailing list