perl: handles BR2_PREFER_STATIC_LIB
PATCH 1/1 perl: handles BR2_PREFER_STATIC_LIB
Signed-off-by Francois Perrad <[email protected]>
--- Makefile | 1 + package/perl/perl.mk | 5 +++++ 2 files changed, 6 insertions(+)
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 $(STRIP_FIND_CMD) | xargs $(STRIPCMD) 2>/dev/null || true
package/perl/perl.mk +5 -0
@@ -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
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
Signed-off-by Francois Perrad <[email protected]>--- Makefile | 1 + package/perl/perl.mk | 5 +++++ 2 files changed, 6 insertions(+)Makefile +0
-0
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