From 1c8c372e9ce5c875f917e563112bab83d6a9c21a Mon Sep 17 00:00:00 2001 From: Marcel Denia Date: Sat, 12 Sep 2015 14:17:30 +0200 Subject: [PATCH] perl: Properly override PERL_INC for subdirectory builds Signed-off-by: Marcel Denia --- lang/perl/perlmod.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/perl/perlmod.mk b/lang/perl/perlmod.mk index df5de2a72..a6f4eaaf9 100644 --- a/lang/perl/perlmod.mk +++ b/lang/perl/perlmod.mk @@ -104,7 +104,7 @@ define perlmod/Configure LINKTYPE=dynamic \ DESTDIR=$(PKG_INSTALL_DIR) \ ); - sed 's!^PERL_INC = .*!PERL_INC = $(STAGING_DIR)/usr/lib/perl5/$(PERL_VERSION)/CORE/!' -i $(PKG_BUILD_DIR)/Makefile + sed 's!^PERL_INC = .*!PERL_INC = $(STAGING_DIR)/usr/lib/perl5/$(PERL_VERSION)/CORE/!' -i $(if $(3),$(3),$(PKG_BUILD_DIR))/Makefile endef define perlmod/Compile