lang/perl: Use target headers for external modules
authorMarcel Denia <naoir@gmx.net>
Tue, 22 Jul 2014 14:15:52 +0000 (16:15 +0200)
committerMarcel Denia <naoir@gmx.net>
Tue, 22 Jul 2014 14:21:38 +0000 (16:21 +0200)
Before, external modules actually used host-perl headers.
Aside from obviously being the wrong thing to do, it made them misbehave if
host and target architectures differ too much.

Signed-off-by: Marcel Denia <naoir@gmx.net>
lang/perl/perlmod.mk

index 09d2f465acc01bd161d9158abfdbf8fb12a433b1..f8f0d036c98f732014e5bd00a1ae2ce07bcb29e1 100644 (file)
@@ -63,6 +63,7 @@ define perlmod/Configure
                LINKTYPE=dynamic \
                DESTDIR=$(PKG_INSTALL_DIR) \
        );
+       sed 's!^PERL_INC = .*!PERL_INC = $(STAGING_DIR)/usr/lib/perl5/5.20/CORE/!' -i $(PKG_BUILD_DIR)/Makefile
 endef
 
 define perlmod/Compile