From f4d51e63c0df777bbcbe9ad160eb3ba41ae74c6e Mon Sep 17 00:00:00 2001 From: Nitin A Kamble Date: Wed, 20 Apr 2011 14:49:41 -0700 Subject: 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. Signed-off-by: Nitin A Kamble --- .../perl/files/Configure-multilib.patch | 15 -------- .../perl/files/letgcc-find-errno.patch | 44 ---------------------- .../libperl-5.8.3-create-libperl-soname.patch | 11 ------ 3 files changed, 70 deletions(-) delete mode 100644 meta/recipes-devtools/perl/files/Configure-multilib.patch delete mode 100644 meta/recipes-devtools/perl/files/letgcc-find-errno.patch delete mode 100644 meta/recipes-devtools/perl/files/libperl-5.8.3-create-libperl-soname.patch (limited to 'meta/recipes-devtools/perl/files') 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 b561b6ab6..000000000 --- a/meta/recipes-devtools/perl/files/Configure-multilib.patch +++ /dev/null @@ -1,15 +0,0 @@ -Index: perl-5.12.2/Configure -=================================================================== ---- perl-5.12.2.orig/Configure -+++ perl-5.12.2/Configure -@@ -1316,8 +1316,9 @@ loclibpth="/usr/local/lib /opt/local/lib - loclibpth="$loclibpth /opt/gnu/lib /usr/GNU/lib /opt/GNU/lib" - - : general looking path for locating libraries --glibpth="/lib /usr/lib $xlibpth" -+glibpth="/lib /usr/lib /lib64 /usr/lib64 $xlibpth" - glibpth="$glibpth /usr/ccs/lib /usr/ucblib /usr/local/lib" -+test -f /usr/lib/`uname -m`-linux-gnu/libc.so && glibpth="/usr/lib/`uname -m`-linux-gnu $glibpth" - test -f /usr/shlib/libc.so && glibpth="/usr/shlib $glibpth" - test -f /shlib/libc.so && glibpth="/shlib $glibpth" - 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 47f972d03..000000000 --- a/meta/recipes-devtools/perl/files/letgcc-find-errno.patch +++ /dev/null @@ -1,44 +0,0 @@ -This removes all the logic that perl uses to locate an appropriate -errno.h for the target. Instead we simple create a file that does - - #include "errno.h" - -and use that as the file to parse. This is needed when using an -external toolchain since perl will search in ${STAGING_INCDIR} for -errno.h (when using gcc) and that isn't where it's located - its -wherever the external toolchain keeps it's headers. - -Index: perl-5.12.2/ext/Errno/Errno_pm.PL -=================================================================== ---- perl-5.12.2.orig/ext/Errno/Errno_pm.PL -+++ perl-5.12.2/ext/Errno/Errno_pm.PL -@@ -17,8 +17,18 @@ unlink "Errno.tmp" if -f "Errno.tmp"; - open OUT, ">Errno.tmp" or die "Cannot open Errno.tmp: $!"; - select OUT; - my $file; --my @files = get_files(); --if ($Config{gccversion} ne '' && $^O eq 'MSWin32') { -+#my @files = get_files(); -+my @files = ("errno.h"); -+ -+if (1) { -+ open INCS, '>includes.c' or -+ die "Cannot open includes.c"; -+ print INCS qq[#include "errno.h"\n]; -+ close INCS; -+ process_file('includes.c'); -+ unlink 'includes.c'; -+} -+elsif ($Config{gccversion} ne '' && $^O eq 'MSWin32') { - # MinGW complains "warning: #pragma system_header ignored outside include - # file" if the header files are processed individually, so include them - # all in .c file and process that instead. -@@ -53,7 +63,7 @@ sub process_file { - chomp($file = `cygpath -w "$file"`); - } - -- return unless defined $file and -f $file; -+# return unless defined $file and -f $file; - # warn "Processing $file\n"; - - 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 6b34ec231..000000000 --- a/meta/recipes-devtools/perl/files/libperl-5.8.3-create-libperl-soname.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- Makefile.SH.orig 2003-07-10 14:59:04.000000000 -0700 -+++ Makefile.SH 2003-07-10 15:14:08.000000000 -0700 -@@ -494,7 +494,7 @@ - case "$useshrplib" in - true) - $spitshell >>Makefile <<'!NO!SUBS!' -- $(LD) -o $@ $(SHRPLDFLAGS) perl$(OBJ_EXT) $(obj) $(libs) -+ $(LD) -o $@ $(SHRPLDFLAGS) perl$(OBJ_EXT) $(obj) $(libs) -soname libperl.so.5 - !NO!SUBS! - case "$osname" in - aix) -- cgit v1.2.3