Makefile 868 B

1234567891011121314151617181920212223242526272829303132333435
  1. #
  2. # Copyright (C) 2008 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libtool
  9. PKG_VERSION:=2.4
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
  12. PKG_MD5SUM:=b32b04148ecdd7344abc6fe8bd1bb021
  13. HOST_BUILD_PARALLEL:=1
  14. include $(INCLUDE_DIR)/host-build.mk
  15. HOST_CONFIGURE_VARS += \
  16. lt_cv_sys_dlsearch_path=""
  17. define Host/Install
  18. $(MAKE) -C $(HOST_BUILD_DIR) install
  19. $(SED) 's,\(hardcode_into_libs\)=yes,\1=no,g' $(STAGING_DIR_HOST)/bin/libtool
  20. $(CP) $(STAGING_DIR_HOST)/bin/libtool $(STAGING_DIR_HOST)/bin/libtool-ucxx
  21. $(SED) 's,-lstdc++,-luClibc++,g' $(STAGING_DIR_HOST)/bin/libtool-ucxx
  22. endef
  23. define Host/Clean
  24. -$(MAKE) -C $(HOST_BUILD_DIR) uninstall
  25. $(call Host/Clean/Default)
  26. endef
  27. $(eval $(call HostBuild))