2015-03-29 15:29:18 +08:00
|
|
|
#
|
2009-02-24 07:52:27 +08:00
|
|
|
# Copyright (C) 2009 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
override CONFIG_AUTOREBUILD=
|
|
|
|
|
2009-11-02 08:47:24 +08:00
|
|
|
REAL_STAGING_DIR_HOST:=$(STAGING_DIR_HOST)
|
2009-02-24 07:52:27 +08:00
|
|
|
STAGING_DIR_HOST:=$(TOOLCHAIN_DIR)
|
|
|
|
BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2009-08-25 07:22:28 +08:00
|
|
|
|
|
|
|
HOST_STAMP_PREPARED=$(HOST_BUILD_DIR)/.prepared
|
2012-07-01 05:43:59 +08:00
|
|
|
|
|
|
|
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
|