netifd: update to the latest version
[openwrt/openwrt.git] / include / toolchain-build.mk
1 # SPDX-License-Identifier: GPL-2.0-only
2 #
3 # Copyright (C) 2009-2020 OpenWrt.org
4
5 override CONFIG_AUTOREBUILD=
6 override CONFIG_AUTOREMOVE=
7
8 HOST_BUILD_PREFIX:=$(TOOLCHAIN_DIR)
9 BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN)
10
11 include $(INCLUDE_DIR)/host-build.mk
12 include $(INCLUDE_DIR)/hardening.mk
13
14 HOST_STAMP_PREPARED=$(HOST_BUILD_DIR)/.prepared
15
16 define FixupLibdir
17 if [ -d $(1)/lib64 -a \! -L $(1)/lib64 ]; then \
18 mkdir -p $(1)/lib; \
19 mv $(1)/lib64/* $(1)/lib/; \
20 rm -rf $(1)/lib64; \
21 fi
22 ln -sf lib $(1)/lib64
23 endef