diff options
Diffstat (limited to 'include/toolchain-build.mk')
-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 a0bc406..d2fdb02 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 |