Skip to contentSkip to conversation

Just a heads up about libtool 2.4

PATCH New Martin Banky 2 participants 3 messages Sep 25, 2010

lore
Share & tools
lore
#0 lore raw

cover Just a heads up about libtool 2.4

I've only tested this on my config settings, so far, and it works for me. I'll be doing some more testing over the next week or so.

Martin

[PATCH 01/01] libtool: bump to 2.4 - now with sysroot support

#1 lore raw

PATCH 1/1 libtool: bump to 2.4 - now with sysroot support

Sysroot support. This allows you to build cross-compiled packages with the same prefix that will be used on the destination machine, and still find dependent libraries under the compiler's "sysroot". Without sysroot support, paths internal to the build system may leak into the product of the build.

Sysroot support is disabled unless the --with-sysroot configure option is passed to configure, because .la files generated with sysroot support will not be usable in general with older Libtools.

---
 package/libtool/libtool.mk |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
package/libtool/libtool.mk +7 -3
index 4278029..d28ad2d 100644
@@ -3,9 +3,13 @@
 # libtool
 #
 #############################################################
-LIBTOOL_VERSION = 1.5.24
+LIBTOOL_VERSION = 2.4
 LIBTOOL_SOURCE = libtool-$(LIBTOOL_VERSION).tar.gz
 LIBTOOL_SITE = $(BR2_GNU_MIRROR)/libtool
+LIBTOOL_LIBTOOL_PATCH = NO
+LIBTOOL_AUTORECONF = NO
+
+LIBTOOL_CONF_OPT = --with-sysroot
 
 ifeq ($(BR2_ENABLE_DEBUG),y) # install-exec doesn't install aclocal stuff
 LIBTOOL_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
@@ -24,5 +28,5 @@ $(eval $(call AUTOTARGETS,package,libtool))
 $(eval $(call AUTOTARGETS,package,libtool,host))
 
 # variables used by other packages
-LIBTOOL:=$(HOST_DIR)/usr/bin/libtool
-LIBTOOLIZE:=$(HOST_DIR)/usr/bin/libtoolize
+LIBTOOL = $(HOST_DIR)/usr/bin/libtool
+LIBTOOLIZE = $(HOST_DIR)/usr/bin/libtoolize
Signature · 1 line
1.7.3
#2 lore raw

cover Just a heads up about libtool 2.4

In reply to Martin Banky

Le samedi 25 septembre 2010 ? 00:33 -0700, Martin Banky a ?crit :

Quoted 6 lines

I've only tested this on my config settings, so far, and it works for me. I'll be doing some more testing over the next week or so.

Martin

[PATCH 01/01] libtool: bump to 2.4 - now with sysroot support

That's great ! I haven't paid attention to the libtool releases...

But just bumping libtool isn't enough to use the sysroot feature from our libtool. You've get ride of the -L$(STAGING_DIR)/lib and -L $(STAGING_DIR)/usr/lib option we add, and also remove the SED pass we make on the .la files.

And still, you need to autoreconf package you want to use our libtool version. Otherwise packages are stuck with the shipped libtool script.

Best regards,

--
Lionel