1 ################################################################################
5 ################################################################################
7 LIBTOOL_VERSION = 2.4.6
8 LIBTOOL_SOURCE = libtool-$(LIBTOOL_VERSION).tar.xz
9 LIBTOOL_SITE = $(BR2_GNU_MIRROR)/libtool
10 LIBTOOL_INSTALL_STAGING = YES
11 LIBTOOL_CONF_ENV = HELP2MAN=true
12 LIBTOOL_DEPENDENCIES = host-m4
13 LIBTOOL_LICENSE = GPLv2+
14 LIBTOOL_LICENSE_FILES = COPYING
16 HOST_LIBTOOL_LIBTOOL_PATCH = NO
18 # We have a patch that affects libtool.m4, which triggers an autoreconf
19 # in the build step. Normally we would set AUTORECONF = YES, but this
20 # doesn't work for host-libtool because that creates a circular
21 # dependency. Instead, touch the generated files so autoreconf is not
22 # triggered in the build step. Note that aclocal.m4 has to be touched
23 # first since the rest depends on it. Note that we don't need the changes
24 # in libtool.m4 in our configure script, because we're not actually
25 # running it on the target.
26 # For the target, we would normally be able to use AUTORECONF, but it
27 # fails on libltdl/Makefile.inc. Rather than trying to fix that failure,
28 # just use the same hack as on the host.
29 define LIBTOOL_AVOID_AUTORECONF_HOOK
30 find $(@D) -name aclocal.m4 -exec touch '{}' \;
31 find $(@D) -name config-h.in -exec touch '{}' \;
32 find $(@D) -name configure -exec touch '{}' \;
33 find $(@D) -name Makefile.in -exec touch '{}' \;
35 LIBTOOL_PRE_CONFIGURE_HOOKS += LIBTOOL_AVOID_AUTORECONF_HOOK
36 HOST_LIBTOOL_PRE_CONFIGURE_HOOKS += LIBTOOL_AVOID_AUTORECONF_HOOK
38 $(eval $(autotools-package))
39 $(eval $(host-autotools-package))
41 # variables used by other packages
42 LIBTOOL = $(HOST_DIR)/usr/bin/libtool
43 LIBTOOLIZE = $(HOST_DIR)/usr/bin/libtoolize