Root/tools/libtool/Makefile

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#
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:=libtool
10PKG_VERSION:=2.4
11
12PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
14PKG_MD5SUM:=b32b04148ecdd7344abc6fe8bd1bb021
15
16include $(INCLUDE_DIR)/host-build.mk
17
18HOST_CONFIGURE_VARS += \
19    lt_cv_sys_dlsearch_path=""
20
21define Host/Compile
22    $(MAKE) -C $(HOST_BUILD_DIR)
23endef
24
25define Host/Install
26    $(MAKE) -C $(HOST_BUILD_DIR) install
27    $(SED) 's,\(hardcode_into_libs\)=yes,\1=no,g' $(STAGING_DIR_HOST)/bin/libtool
28    $(CP) $(STAGING_DIR_HOST)/bin/libtool $(STAGING_DIR_HOST)/bin/libtool-ucxx
29    $(SED) 's,-lstdc++,-luClibc++,g' $(STAGING_DIR_HOST)/bin/libtool-ucxx
30endef
31
32define Host/Clean
33    -$(MAKE) -C $(HOST_BUILD_DIR) uninstall
34    $(call Host/Clean/Default)
35endef
36
37$(eval $(call HostBuild))
38

Archive Download this file



interactive