Skip to contentSkip to conversation

package/libtool: Reduce target package to libltdl only

PATCH New Alexander Sverdlin 3 participants 3 messages Nov 26, 2018 – Nov 30, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 package/libtool: Reduce target package to libltdl only

This will save 1700K on target filesystem (as tested on ARM, i686).

---
Changelog:
v3:
- removed redundant empty HOST_LIBTOOL_CONF_OPTS
- dual HOST_LIBTOOL_LICENSE from Yann&Arnout v2:
- rework target libtool instead of new package/libltdl

 package/libtool/libtool.mk | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)
package/libtool/libtool.mk +12 -3
index bf97ee12b5..52597283f0 100644
@@ -7,12 +7,21 @@
 LIBTOOL_VERSION = 2.4.6
 LIBTOOL_SOURCE = libtool-$(LIBTOOL_VERSION).tar.xz
 LIBTOOL_SITE = $(BR2_GNU_MIRROR)/libtool
+
+LIBTOOL_SUBDIR = libltdl
+HOST_LIBTOOL_SUBDIR = .
+
 LIBTOOL_INSTALL_STAGING = YES
-LIBTOOL_CONF_ENV = HELP2MAN=true
+
+LIBTOOL_CONF_OPTS = --enable-ltdl-install
+
 LIBTOOL_DEPENDENCIES = host-m4
 HOST_LIBTOOL_DEPENDENCIES = host-m4
-LIBTOOL_LICENSE = GPL-2.0+
-LIBTOOL_LICENSE_FILES = COPYING
+
+LIBTOOL_LICENSE = LGPL-2.1+
+LIBTOOL_LICENSE_FILES = $(LIBTOOL_SUBDIR)/COPYING.LIB
+HOST_LIBTOOL_LICENSE = GPL-2.0+ (libtool), LGPL-2.1+ (libltdl)
+HOST_LIBTOOL_LICENSE_FILES = COPYING $(LIBTOOL_SUBDIR)/COPYING.LIB
 
 HOST_LIBTOOL_CONF_ENV = MAKEINFO=true
 HOST_LIBTOOL_LIBTOOL_PATCH = NO
Signature · 1 line
2.19.1
#1 lore raw

PATCH v3 1/1 package/libtool: Reduce target package to libltdl only

Alexander, All,

On 2018-11-26 20:37 +0100, Alexander Sverdlin spake thusly:

Quoted 3 lines

This will save 1700K on target filesystem (as tested on ARM, i686).

Regards,
Yann E. MORIN.

Quoted 42 lines

---
Changelog:
v3:
- removed redundant empty HOST_LIBTOOL_CONF_OPTS
- dual HOST_LIBTOOL_LICENSE from Yann&Arnout v2:
- rework target libtool instead of new package/libltdl

 package/libtool/libtool.mk | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)
package/libtool/libtool.mk +12 -3
index bf97ee12b5..52597283f0 100644
@@ -7,12 +7,21 @@
 LIBTOOL_VERSION = 2.4.6
 LIBTOOL_SOURCE = libtool-$(LIBTOOL_VERSION).tar.xz
 LIBTOOL_SITE = $(BR2_GNU_MIRROR)/libtool
+
+LIBTOOL_SUBDIR = libltdl
+HOST_LIBTOOL_SUBDIR = .
+
 LIBTOOL_INSTALL_STAGING = YES
-LIBTOOL_CONF_ENV = HELP2MAN=true
+
+LIBTOOL_CONF_OPTS = --enable-ltdl-install
+
 LIBTOOL_DEPENDENCIES = host-m4
 HOST_LIBTOOL_DEPENDENCIES = host-m4
-LIBTOOL_LICENSE = GPL-2.0+
-LIBTOOL_LICENSE_FILES = COPYING
+
+LIBTOOL_LICENSE = LGPL-2.1+
+LIBTOOL_LICENSE_FILES = $(LIBTOOL_SUBDIR)/COPYING.LIB
+HOST_LIBTOOL_LICENSE = GPL-2.0+ (libtool), LGPL-2.1+ (libltdl)
+HOST_LIBTOOL_LICENSE_FILES = COPYING $(LIBTOOL_SUBDIR)/COPYING.LIB
 
 HOST_LIBTOOL_CONF_ENV = MAKEINFO=true
 HOST_LIBTOOL_LIBTOOL_PATCH = NO
Signature · 1 line
2.19.1
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#2 lore raw

PATCH v3 1/1 package/libtool: Reduce target package to libltdl only

In reply to Alexander Sverdlin

Hello,

Quoted 10 lines · Alexander Sverdlin

This will save 1700K on target filesystem (as tested on ARM, i686).

---
Changelog:
v3:
- removed redundant empty HOST_LIBTOOL_CONF_OPTS
- dual HOST_LIBTOOL_LICENSE from Yann&Arnout v2:
- rework target libtool instead of new package/libltdl

Quoted 2 lines
 package/libtool/libtool.mk | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

Applied to next, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com