summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/perl/perl-5.12.2/Makefile.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/perl/perl-5.12.2/Makefile.patch')
-rw-r--r--meta/recipes-devtools/perl/perl-5.12.2/Makefile.patch57
1 files changed, 57 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl-5.12.2/Makefile.patch b/meta/recipes-devtools/perl/perl-5.12.2/Makefile.patch
new file mode 100644
index 0000000000..e7226ff708
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl-5.12.2/Makefile.patch
@@ -0,0 +1,57 @@
1Index: perl-5.12.2/Cross/Makefile
2===================================================================
3--- perl-5.12.2.orig/Cross/Makefile
4+++ perl-5.12.2/Cross/Makefile
5@@ -2,7 +2,8 @@
6 #
7 ## $Id: Makefile,v 1.5 2003/12/12 00:48:19 red Exp red $
8
9-export TOPDIR=${shell pwd}
10+override TOPDIR=${shell pwd}
11+export TOPDIR
12 include $(TOPDIR)/config
13 export CFLAGS
14 export SYS=$(ARCH)-$(OS)
15@@ -12,7 +13,7 @@ export OPTIMIZATION = -O2
16
17 export CC = $(CROSS)gcc
18 export CXX = $(CROSS)g++
19-export LD = $(CROSS)ld
20+export LD = $(CC)
21 export STRIP = $(CROSS)strip
22 export AR = $(CROSS)ar
23 export RANLIB = $(CROSS)ranlib
24@@ -34,17 +35,6 @@ CFLAGS+=$(FULL_OPTIMIZATION)
25 all:
26 @echo Please read the README file before doing anything else.
27
28-gen_patch:
29- diff -Bbur ../Makefile.SH Makefile.SH > Makefile.SH.patch
30- diff -Bbur ../installperl installperl > installperl.patch
31-
32-patch:
33- cd .. ; if [ ! -e ./CROSS_PATCHED ] ; then \
34- patch -p1 < Cross/Makefile.SH.patch; \
35- patch -p1 < Cross/installperl.patch ; mv installperl installperl-patched; \
36- sed -e 's/XXSTRIPXX/$(SYS)/' installperl-patched > installperl; \
37- touch CROSS_PATCHED ; fi
38-
39 perl:
40 @echo Perl cross-build directory is $(TOPDIR)
41 @echo Target arch is $(SYS)
42@@ -54,11 +44,11 @@ perl:
43 $(TOPDIR)/generate_config_sh config.sh-$(SYS) > $(TOPDIR)/../config.sh
44 cd $(TOPDIR)/.. ; ./Configure -S ; make depend ; make ; make more
45 cd $(TOPDIR)/.. ; mkdir -p fake_config_library ; cp lib/Config.pm lib/Config_heavy.pl fake_config_library
46- cd $(TOPDIR)/.. ; $(MAKE) more2 "PERLRUN=/usr/bin/perl -I$(TOPDIR)/../fake_config_library -MConfig"
47- cd $(TOPDIR)/.. ; $(MAKE) more3 "PERLRUN=/usr/bin/perl -I$(TOPDIR)/../fake_config_library -MConfig"
48- cd $(TOPDIR)/.. ; $(MAKE) more4 "PERLRUN=/usr/bin/perl -I$(TOPDIR)/../fake_config_library -MConfig"
49+ cd $(TOPDIR)/.. ; $(MAKE) more2 "PERLRUN=hostperl -I$(TOPDIR)/../fake_config_library -MConfig"
50+ cd $(TOPDIR)/.. ; $(MAKE) more3 "PERLRUN=hostperl -I$(TOPDIR)/../fake_config_library -MConfig"
51+ cd $(TOPDIR)/.. ; $(MAKE) more4 "PERLRUN=hostperl -I$(TOPDIR)/../fake_config_library -MConfig"
52 cd $(TOPDIR)/.. ; rm -rf install_me_here
53- cd $(TOPDIR)/.. ; make install-strip
54+# cd $(TOPDIR)/.. ; make install-strip
55 cd $(TOPDIR)/.. ; sh -x Cross/warp
56
57