Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #
  2. # Copyright (C) 2008-2015 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.xz
  11. PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
  12. PKG_HASH:=afcce660d3dc54c63a0a5ba3cf05272239dc3c54bbeba20f6bad250f9dc007ae
  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/Prepare
  18. $(call Host/Prepare/Default)
  19. (cd $(STAGING_DIR_HOST)/share/aclocal/ && rm -f libtool.m4 ltdl.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4)
  20. (cd $(HOST_BUILD_DIR); $(AM_TOOL_PATHS) ./bootstrap)
  21. endef
  22. define Host/Install
  23. $(MAKE) -C $(HOST_BUILD_DIR) install
  24. $(SED) 's,\(hardcode_into_libs\)=yes,\1=no,g' $(STAGING_DIR_HOST)/bin/libtool
  25. $(CP) $(STAGING_DIR_HOST)/bin/libtool $(STAGING_DIR_HOST)/bin/libtool-ucxx
  26. $(SED) 's,-lstdc++,-luClibc++,g' $(STAGING_DIR_HOST)/bin/libtool-ucxx
  27. endef
  28. define Host/Clean
  29. -$(MAKE) -C $(HOST_BUILD_DIR) uninstall
  30. $(call Host/Clean/Default)
  31. endef
  32. $(eval $(call HostBuild))