X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;ds=inline;f=include%2Ftoolchain-build.mk;h=212923a1e65f263ae9bf2f7513c925154c5702e8;hb=a4a0fa62d6b6fadc61d9cdfa3ac1aa2438c33e64;hp=a0bc4061fcfcfc6c488e30ac985ccf4c709f9d5d;hpb=ef39b40498680c5f29fffbeb88fef3e96b1d33b6;p=openwrt-github%2F.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