summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/perl/files
diff options
context:
space:
mode:
authorNitin A Kamble <nitin.a.kamble@intel.com>2011-04-20 14:49:41 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-04-24 22:50:36 +0100
commit345de20815a0bdc8c8acdfeb7d8796e27f825ddc (patch)
tree423b2302e0a02a433b97b3696bb678e8720154aa /meta/recipes-devtools/perl/files
parent4ffd8a2d7224803eba152c9dbc0f7e0f837931bc (diff)
downloadpoky-345de20815a0bdc8c8acdfeb7d8796e27f825ddc.tar.gz
perl-5.12.2: use of PERLHOSTLIB var fix
PERLHOSTLIB var is used to build target perl. It let perl use the native perl .so module files at the time of compilation of target perl. These changes to perl make the PERLHOSTLIB variable also useful for building perl modules to use native .so perl module. (From OE-Core rev: f4d51e63c0df777bbcbe9ad160eb3ba41ae74c6e) Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/perl/files')
-rw-r--r--meta/recipes-devtools/perl/files/Configure-multilib.patch15
-rw-r--r--meta/recipes-devtools/perl/files/letgcc-find-errno.patch44
-rw-r--r--meta/recipes-devtools/perl/files/libperl-5.8.3-create-libperl-soname.patch11
3 files changed, 0 insertions, 70 deletions
diff --git a/meta/recipes-devtools/perl/files/Configure-multilib.patch b/meta/recipes-devtools/perl/files/Configure-multilib.patch
deleted file mode 100644
index b561b6ab6f..0000000000
--- a/meta/recipes-devtools/perl/files/Configure-multilib.patch
+++ /dev/null
@@ -1,15 +0,0 @@
1Index: perl-5.12.2/Configure
2===================================================================
3--- perl-5.12.2.orig/Configure
4+++ perl-5.12.2/Configure
5@@ -1316,8 +1316,9 @@ loclibpth="/usr/local/lib /opt/local/lib
6 loclibpth="$loclibpth /opt/gnu/lib /usr/GNU/lib /opt/GNU/lib"
7
8 : general looking path for locating libraries
9-glibpth="/lib /usr/lib $xlibpth"
10+glibpth="/lib /usr/lib /lib64 /usr/lib64 $xlibpth"
11 glibpth="$glibpth /usr/ccs/lib /usr/ucblib /usr/local/lib"
12+test -f /usr/lib/`uname -m`-linux-gnu/libc.so && glibpth="/usr/lib/`uname -m`-linux-gnu $glibpth"
13 test -f /usr/shlib/libc.so && glibpth="/usr/shlib $glibpth"
14 test -f /shlib/libc.so && glibpth="/shlib $glibpth"
15 test -d /usr/lib64 && glibpth="$glibpth /lib64 /usr/lib64 /usr/local/lib64"
diff --git a/meta/recipes-devtools/perl/files/letgcc-find-errno.patch b/meta/recipes-devtools/perl/files/letgcc-find-errno.patch
deleted file mode 100644
index 47f972d039..0000000000
--- a/meta/recipes-devtools/perl/files/letgcc-find-errno.patch
+++ /dev/null
@@ -1,44 +0,0 @@
1This removes all the logic that perl uses to locate an appropriate
2errno.h for the target. Instead we simple create a file that does
3
4 #include "errno.h"
5
6and use that as the file to parse. This is needed when using an
7external toolchain since perl will search in ${STAGING_INCDIR} for
8errno.h (when using gcc) and that isn't where it's located - its
9wherever the external toolchain keeps it's headers.
10
11Index: perl-5.12.2/ext/Errno/Errno_pm.PL
12===================================================================
13--- perl-5.12.2.orig/ext/Errno/Errno_pm.PL
14+++ perl-5.12.2/ext/Errno/Errno_pm.PL
15@@ -17,8 +17,18 @@ unlink "Errno.tmp" if -f "Errno.tmp";
16 open OUT, ">Errno.tmp" or die "Cannot open Errno.tmp: $!";
17 select OUT;
18 my $file;
19-my @files = get_files();
20-if ($Config{gccversion} ne '' && $^O eq 'MSWin32') {
21+#my @files = get_files();
22+my @files = ("errno.h");
23+
24+if (1) {
25+ open INCS, '>includes.c' or
26+ die "Cannot open includes.c";
27+ print INCS qq[#include "errno.h"\n];
28+ close INCS;
29+ process_file('includes.c');
30+ unlink 'includes.c';
31+}
32+elsif ($Config{gccversion} ne '' && $^O eq 'MSWin32') {
33 # MinGW complains "warning: #pragma system_header ignored outside include
34 # file" if the header files are processed individually, so include them
35 # all in .c file and process that instead.
36@@ -53,7 +63,7 @@ sub process_file {
37 chomp($file = `cygpath -w "$file"`);
38 }
39
40- return unless defined $file and -f $file;
41+# return unless defined $file and -f $file;
42 # warn "Processing $file\n";
43
44 local *FH;
diff --git a/meta/recipes-devtools/perl/files/libperl-5.8.3-create-libperl-soname.patch b/meta/recipes-devtools/perl/files/libperl-5.8.3-create-libperl-soname.patch
deleted file mode 100644
index 6b34ec2318..0000000000
--- a/meta/recipes-devtools/perl/files/libperl-5.8.3-create-libperl-soname.patch
+++ /dev/null
@@ -1,11 +0,0 @@
1--- Makefile.SH.orig 2003-07-10 14:59:04.000000000 -0700
2+++ Makefile.SH 2003-07-10 15:14:08.000000000 -0700
3@@ -494,7 +494,7 @@
4 case "$useshrplib" in
5 true)
6 $spitshell >>Makefile <<'!NO!SUBS!'
7- $(LD) -o $@ $(SHRPLDFLAGS) perl$(OBJ_EXT) $(obj) $(libs)
8+ $(LD) -o $@ $(SHRPLDFLAGS) perl$(OBJ_EXT) $(obj) $(libs) -soname libperl.so.5
9 !NO!SUBS!
10 case "$osname" in
11 aix)