toolchain-build.mk 588 B

1234567891011121314151617181920212223242526
  1. #
  2. # Copyright (C) 2009 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. override CONFIG_AUTOREBUILD=
  8. override CONFIG_AUTOREMOVE=
  9. HOST_BUILD_PREFIX:=$(TOOLCHAIN_DIR)
  10. BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN)
  11. include $(INCLUDE_DIR)/host-build.mk
  12. include $(INCLUDE_DIR)/hardening.mk
  13. HOST_STAMP_PREPARED=$(HOST_BUILD_DIR)/.prepared
  14. define FixupLibdir
  15. if [ -d $(1)/lib64 -a \! -L $(1)/lib64 ]; then \
  16. mkdir -p $(1)/lib; \
  17. mv $(1)/lib64/* $(1)/lib/; \
  18. rm -rf $(1)/lib64; \
  19. fi
  20. ln -sf lib $(1)/lib64
  21. endef