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