2 # Copyright (C) 2008-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
10 PKG_CPE_ID
:=cpe
:/a
:gnu
:libtool
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
14 PKG_SOURCE_URL
:=@GNU
/$(PKG_NAME
)
15 PKG_HASH
:=4f7f217f057ce655ff22559ad221a0fd8ef84ad1fc5fcb6990cecc333aa1635d
17 HOST_BUILD_PARALLEL
:=1
19 include $(INCLUDE_DIR
)/host-build.mk
21 HOST_CONFIGURE_VARS
+= \
22 lt_cv_sys_dlsearch_path
=""
25 $(call Host
/Prepare
/Default
)
26 (cd
$(STAGING_DIR_HOST
)/share
/aclocal
/ && rm -f libtool.m4 ltdl.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4
)
27 $(if
$(QUILT
),,(cd
$(HOST_BUILD_DIR
); touch README-release
; $(AM_TOOL_PATHS
) .
/bootstrap
--skip-git
--skip-po
--force))
31 $(if
$(QUILT
),(cd
$(HOST_BUILD_DIR
); touch README-release
; $(AM_TOOL_PATHS
) .
/bootstrap
--skip-git
--skip-po
--force))
32 $(call Host
/Configure
/Default
)
36 $(MAKE
) -C
$(HOST_BUILD_DIR
) install
37 $(SED
) 's,\(hardcode_into_libs\)=yes,\1=no,g' $(STAGING_DIR_HOST
)/bin
/libtool
38 $(CP
) $(STAGING_DIR_HOST
)/bin
/libtool
$(STAGING_DIR_HOST
)/bin
/libtool-ucxx
39 $(SED
) 's,-lstdc++,-luClibc++,g' $(STAGING_DIR_HOST
)/bin
/libtool-ucxx
43 -$(call Host
/Compile
/Default
,uninstall)
47 $(call Host
/Clean
/Default
)
50 $(eval
$(call HostBuild
))