]> git.openpandora.org Git - openembedded.git/commitdiff
intltool: Better fix of perl path not breaking native nor cross build.
authorStanislav Brabec <utx@penguin.cz>
Tue, 9 Sep 2008 19:41:39 +0000 (19:41 +0000)
committerStanislav Brabec <utx@penguin.cz>
Tue, 9 Sep 2008 19:41:39 +0000 (19:41 +0000)
packages/intltool/intltool-native_0.40.3.bb
packages/intltool/intltool_0.40.3.bb

index a90b667d6d1e3c00a907ed75118c0e9c0174dea6..b9550cc9824949a47ecde88d8ac4c9d1eb594e36 100644 (file)
@@ -5,7 +5,7 @@ PR = "r2"
 inherit native
 DEPENDS = "libxml-parser-perl-native"
 
-export PERL = "/usr/bin/env perl"
+EXTRA_OEMAKE = "'PERL_TARGET=/usr/bin/env perl'"
 
 do_configure_prepend() {
        cd ${S}
index 218cb6dbb3e46d9c8f6ce11490f4551ca2a17d6e..b4000dc7c05d206dcc303cc2b1480735dcbfd805 100644 (file)
@@ -2,8 +2,10 @@ require intltool.inc
 
 PR = "r2"
 
+EXTRA_OEMAKE = "'PERL_TARGET=/usr/bin/perl'"
+
 do_configure_prepend() {
-       sed -i -e s:\\\$\(PERL\):/usr/bin/perl:g Makefile.am
+       sed -i -e s:\\\$\(PERL\):\$\(PERL_TARGET\):g Makefile.am
 }      
 
 do_configure_append() {