[oe-commits] Phil Blundell : uclibc: fix handling of bindir != /usr/bin

git version control git at git.openembedded.org
Thu Jun 11 13:45:49 UTC 2009


Module: openembedded.git
Branch: laibsch/wip
Commit: b547ef50c9d04427cf4f62b9f5feaad3b7f34c56
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=b547ef50c9d04427cf4f62b9f5feaad3b7f34c56

Author: Phil Blundell <philb at gnu.org>
Date:   Wed Jun 10 21:02:49 2009 +0100

uclibc: fix handling of bindir != /usr/bin

---

 recipes/uclibc/uclibc.inc |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/recipes/uclibc/uclibc.inc b/recipes/uclibc/uclibc.inc
index a967954..bf8df8e 100644
--- a/recipes/uclibc/uclibc.inc
+++ b/recipes/uclibc/uclibc.inc
@@ -202,17 +202,17 @@ do_install() {
 		rmdir ${D}${prefix}/lib
 	fi
 
-	if [ "${bindir}" != "/usr/bin" ]; then
-		install -d ${D}${bindir}
-		mv ${D}/usr/bin/* ${D}${bindir}/
-		rmdir ${D}/usr/bin
-	fi
-
         oe_runmake "SSP_ALL_CFLAGS=${TARGET_LINK_HASH_STYLE}" utils
         oe_runmake STRIPTOOL=true PREFIX=${D} DEVEL_PREFIX=${prefix}/ RUNTIME_PREFIX=/ \
                 install_utils
 	
 	# oe_runstrip needs +x on files	
 	chmod +x ${D}/${base_libdir}/*
+
+	if [ "${bindir}" != "/usr/bin" ]; then
+		install -d ${D}${bindir}
+		mv ${D}/usr/bin/* ${D}${bindir}/
+		rmdir ${D}/usr/bin
+	fi
 }
 





More information about the Openembedded-commits mailing list