Skip to contentSkip to conversation

perl: handles BR2_PREFER_STATIC_LIB

PATCH New Francois Perrad 2 participants 2 messages Jul 27, 2014 – Jul 28, 2014 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perl: handles BR2_PREFER_STATIC_LIB

---
 Makefile             | 1 +
 package/perl/perl.mk | 5 +++++
 2 files changed, 6 insertions(+)
Makefile +1 -0
index 6bd18e3..a0f37db 100644
@@ -579,6 +579,7 @@ endif
 	rm -rf $(TARGET_DIR)/usr/lib/luarocks
 	rm -rf $(TARGET_DIR)/usr/lib/perl5/$(PERL_VERSION)/pod
 	rm -rf $(TARGET_DIR)/usr/lib/perl5/$(PERL_VERSION)/$(PERL_ARCHNAME)/CORE
+	find $(TARGET_DIR)/usr/lib/perl5/ -name 'extralibs.ld' -print0 | xargs -0 rm -f
 	find $(TARGET_DIR)/usr/lib/perl5/ -name '*.bs' -print0 | xargs -0 rm -f
 	find $(TARGET_DIR)/usr/lib/perl5/ -name '.packlist' -print0 | xargs -0 rm -f
 	$(STRIP_FIND_CMD) | xargs $(STRIPCMD) 2>/dev/null || true
package/perl/perl.mk +5 -0
index 8321570..7acd76d 100644
@@ -69,6 +69,11 @@ ifeq ($(shell expr $(PERL_VERSION_MAJOR) % 2), 1)
     PERL_CONF_OPT += -Dusedevel
 endif
 
+ifeq ($(BR2_PREFER_STATIC_LIB),y)
+    PERL_CONF_OPT += --all-static
+    PERL_CONF_OPT += --no-dynaloader
+endif
+
 ifneq ($(BR2_LARGEFILE),y)
     PERL_CONF_OPT += -Uuselargefiles
 endif
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 perl: handles BR2_PREFER_STATIC_LIB

Dear Francois Perrad,

I've fixed the commit log: s/handles/handle/.

Quoted 11 lines · Francois Perrad
---
 Makefile             | 1 +
 package/perl/perl.mk | 5 +++++
 2 files changed, 6 insertions(+)
Makefile +0 -0
index 6bd18e3..a0f37db 100644

Makefile endif · line 584

Quoted 6 lines
Makefile +1 -0
@@ -579,6 +579,7 @@ endif
 	rm -rf $(TARGET_DIR)/usr/lib/luarocks
 	rm -rf $(TARGET_DIR)/usr/lib/perl5/$(PERL_VERSION)/pod
 	rm -rf $(TARGET_DIR)/usr/lib/perl5/$(PERL_VERSION)/$(PERL_ARCHNAME)/CORE
+	find $(TARGET_DIR)/usr/lib/perl5/ -name 'extralibs.ld' -print0 | xargs -0 rm -f
 	find $(TARGET_DIR)/usr/lib/perl5/ -name '*.bs' -print0 | xargs -0 rm -f
 	find $(TARGET_DIR)/usr/lib/perl5/ -name '.packlist' -print0 | xargs -0 rm -f

Could you prepare a patch that moves the Lua specific and Perl specific target-finalize stuff to the relevant packages, using the new TARGET_FINALIZE_HOOKS mechanism?

Makefile endif

Quoted 3 lines
Makefile +3 -0
+ifeq ($(BR2_PREFER_STATIC_LIB),y)
+    PERL_CONF_OPT += --all-static
+    PERL_CONF_OPT += --no-dynaloader

I've changed to use one PERL_CONF_OPT += line only.

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com