summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-06-07 22:13:49 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-06-07 22:13:49 +0200
commitb6df54af44676e31d01f9e2cb6129269af1302fe (patch)
tree262253231eec8ddac595b56c92f4319708f4ea26 /mk
parent508abbb19cbc67c370f59d78a7aaf9d964faf90c (diff)
/usr/lib might be empty
Diffstat (limited to 'mk')
-rw-r--r--mk/image.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/mk/image.mk b/mk/image.mk
index 0f883c420..725c8fdcf 100644
--- a/mk/image.mk
+++ b/mk/image.mk
@@ -65,7 +65,7 @@ ifneq ($(ADK_LINUX_X86_64)$(ADK_LINUX_PPC64)$(ADK_LINUX_SPARC64)$(ADK_TARGET_ABI
test ! -d ${TARGET_DIR}/lib || rm -rf ${TARGET_DIR}/lib
ln -sf /${ADK_TARGET_LIBC_PATH} ${TARGET_DIR}/lib
mkdir -p ${TARGET_DIR}/usr/${ADK_TARGET_LIBC_PATH} 2>/dev/null
- test ! -d ${TARGET_DIR}/usr/lib || mv ${TARGET_DIR}/usr/lib/* ${TARGET_DIR}/usr/${ADK_TARGET_LIBC_PATH}
+ -test ! -d ${TARGET_DIR}/usr/lib || mv ${TARGET_DIR}/usr/lib/* ${TARGET_DIR}/usr/${ADK_TARGET_LIBC_PATH}
test ! -d ${TARGET_DIR}/usr/lib || rm -rf ${TARGET_DIR}/usr/lib/
(cd ${TARGET_DIR}/usr ; ln -sf ${ADK_TARGET_LIBC_PATH} lib)
endif