X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=include%2Ftoolchain-build.mk;h=212923a1e65f263ae9bf2f7513c925154c5702e8;hb=16bd8536c5f3a2717cf5c31eea67bb906cb75d4b;hp=a0bc4061fcfcfc6c488e30ac985ccf4c709f9d5d;hpb=a26814e6d64497363e371690e8a4ac44a2df1425;p=openwrt.git diff --git a/include/toolchain-build.mk b/include/toolchain-build.mk index a0bc4061fc..212923a1e6 100644 --- a/include/toolchain-build.mk +++ b/include/toolchain-build.mk @@ -1,4 +1,4 @@ -# +# # Copyright (C) 2009 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. @@ -11,8 +11,15 @@ REAL_STAGING_DIR_HOST:=$(STAGING_DIR_HOST) STAGING_DIR_HOST:=$(TOOLCHAIN_DIR) BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN) -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