diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-06-30 21:43:59 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-06-30 21:43:59 +0000 |
commit | b284b583becd3a4da78dc934b382f8d3ae9e8c06 (patch) | |
tree | 085eb95b8263d0dbba9dfa6184ebcd453423bb06 /include | |
parent | 86e3bacd5a5e4274808090ae5c8750843a65b56a (diff) |
toolchain: fix up lib64 symlink to lib before copying the initial prefix dir to avoid errors on copying
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32556 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r-- | include/toolchain-build.mk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/toolchain-build.mk b/include/toolchain-build.mk index a0bc4061f..d2fdb0281 100644 --- a/include/toolchain-build.mk +++ b/include/toolchain-build.mk @@ -16,3 +16,12 @@ TOOLCHAIN_JOBS?=$(if $(CONFIG_TOOLCHAIN_PARALLEL),-j$(CONFIG_PKG_BUILD_JOBS)) include $(INCLUDE_DIR)/host-build.mk HOST_STAMP_PREPARED=$(HOST_BUILD_DIR)/.prepared + +define FixupLibdir + if [ -d $(1)/lib64 -a \! -L $(1)/lib64 ]; then \ + mkdir -p $(1)/lib; \ + mv $(1)/lib64/* $(1)/lib/; \ + rm -rf $(1)/lib64; \ + fi + ln -sf lib $(1)/lib64 +endef |