1
0

toolchain-build.mk 521 B

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