diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-10-25 12:17:33 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-10-25 12:17:33 +0000 |
commit | efbf22baf4d267e11bf6ce4ac25a6b2a2c148cc6 (patch) | |
tree | b2f639ee0a27c27dd69b8d9d24c44cee82a70d31 /Cross | |
parent | 3d0346a5d1004526830c70905c56755aecc6a442 (diff) | |
download | perl-efbf22baf4d267e11bf6ce4ac25a6b2a2c148cc6.tar.gz |
Rediff the Makefile.SH patch for cross-compilation.
(this doesn't mean it works, though.)
p4raw-id: //depot/perl@25846
Diffstat (limited to 'Cross')
-rw-r--r-- | Cross/Makefile.SH.patch | 112 |
1 files changed, 59 insertions, 53 deletions
diff --git a/Cross/Makefile.SH.patch b/Cross/Makefile.SH.patch index 567db603cd..f21a1e43e3 100644 --- a/Cross/Makefile.SH.patch +++ b/Cross/Makefile.SH.patch @@ -1,6 +1,6 @@ ---- ../Makefile.SH 2003-08-22 09:49:04.000000000 -0500 -+++ Makefile.SH 2003-09-05 02:38:40.000000000 -0500 -@@ -110,18 +110,7 @@ +--- ../Makefile.SH ++++ ../Makefile.SH +@@ -129,18 +129,7 @@ # INSTALL file, under "Building a shared perl library". # If there is no pre-existing $libperl, we don't need # to do anything further. @@ -20,14 +20,14 @@ ;; os390) test -f /bin/env && ldlibpth="/bin/env $ldlibpth" ;; -@@ -349,9 +338,21 @@ +@@ -389,9 +378,21 @@ .c.s: $(CCCMDSRC) -S $*.c --all: $(FIRSTMAKEFILE) miniperl$(EXE_EXT) extra.pods $(private) $(public) $(dynamic_ext) $(nonxs_ext) extras.make +-all: $(FIRSTMAKEFILE) miniperl$(EXE_EXT) extra.pods $(private) $(unidatafiles) $(public) $(dynamic_ext) $(nonxs_ext) extras.make - @echo " "; - @echo " Everything is up to date. Type '$(MAKE) test' to run test suite." -+#all: $(FIRSTMAKEFILE) miniperl$(EXE_EXT) extra.pods $(private) $(public) $(dynamic_ext) $(nonxs_ext) extras.make ++#all: $(FIRSTMAKEFILE) miniperl$(EXE_EXT) extra.pods $(private) $(unidatafiles) $(public) $(dynamic_ext) $(nonxs_ext) extras.make +# @echo " "; +# @echo " Everything is up to date. Type '$(MAKE) test' to run test suite." + @@ -45,20 +45,20 @@ .PHONY: all compile translators utilities -@@ -361,10 +362,10 @@ +@@ -401,10 +402,10 @@ cd x2p; $(MAKE) compile; cd pod; $(MAKE) compile; --translators: miniperl$(EXE_EXT) lib/Config.pm FORCE -+translators: lib/Config.pm FORCE +-translators: miniperl$(EXE_EXT) $(CONFIGPM) FORCE ++translators: $(CONFIGPM) FORCE @echo " "; echo " Making x2p stuff"; cd x2p; $(LDLIBPTH) $(MAKE) all --utilities: miniperl$(EXE_EXT) lib/Config.pm $(plextract) lib/lib.pm FORCE -+utilities: lib/Config.pm $(plextract) lib/lib.pm FORCE +-utilities: miniperl$(EXE_EXT) $(CONFIGPM) $(plextract) lib/lib.pm FORCE ++utilities: $(CONFIGPM) $(plextract) lib/lib.pm FORCE @echo " "; echo " Making utilities"; cd utils; $(LDLIBPTH) $(MAKE) all -@@ -541,7 +542,7 @@ +@@ -579,7 +580,7 @@ $(CC) -o miniperl $(CLDFLAGS) \ `echo $(obj) | sed 's/ op$(OBJ_EXT) / /'` \ miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT) perl$(OBJ_EXT) $(libs) @@ -66,8 +66,8 @@ +# $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest !NO!SUBS! ;; - beos*|next4*) -@@ -549,7 +550,7 @@ + next4*) +@@ -587,7 +588,7 @@ miniperl: $& miniperlmain$(OBJ_EXT) $(LIBPERL) opmini$(OBJ_EXT) $(CC) -o miniperl `echo $(obj) | sed 's/ op$(OBJ_EXT) / /'` \ miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT) perl$(OBJ_EXT) $(libs) @@ -76,55 +76,61 @@ !NO!SUBS! ;; darwin*) -@@ -716,7 +717,7 @@ +@@ -754,7 +755,7 @@ # We need to autosplit in two steps because VOS can't handle so many args # .PHONY: preplibrary --preplibrary: miniperl$(EXE_EXT) lib/Config.pm lib/lib.pm $(PREPLIBRARY_LIBPERL) -+preplibrary: lib/Config.pm lib/lib.pm $(PREPLIBRARY_LIBPERL) +-preplibrary: miniperl$(EXE_EXT) $(CONFIGPM) lib/lib.pm $(PREPLIBRARY_LIBPERL) ++preplibrary: $(CONFIGPM) lib/lib.pm $(PREPLIBRARY_LIBPERL) @sh ./makedir lib/auto @echo " AutoSplitting perl library" $(LDLIBPTH) ./miniperl -Ilib -e 'use AutoSplit; \ -@@ -728,11 +729,11 @@ - # Take care to avoid modifying lib/Config.pm without reason - # (If trying to create a new port and having problems with the configpm script, - # try 'make minitest' and/or commenting out the tests at the end of configpm.) --lib/Config.pm: config.sh miniperl$(EXE_EXT) configpm Porting/Glossary -+lib/Config.pm: config.sh configpm Porting/Glossary - $(LDLIBPTH) ./miniperl -Ilib configpm configpm.tmp - sh mv-if-diff configpm.tmp $@ - --lib/ExtUtils/Miniperl.pm: miniperlmain.c miniperl$(EXE_EXT) minimod.pl lib/Config.pm -+lib/ExtUtils/Miniperl.pm: miniperlmain.c minimod.pl lib/Config.pm - $(LDLIBPTH) ./miniperl minimod.pl > minimod.tmp - sh mv-if-diff minimod.tmp $@ - -touch lib/ExtUtils/Miniperl.pm -@@ -740,18 +741,18 @@ +@@ -763,35 +764,35 @@ + autosplit_lib_modules(@ARGV)' lib/*/*.pm + $(MAKE) lib/re.pm + +-lib/Config.pod: config.sh miniperl$(EXE_EXT) configpm Porting/Glossary ++lib/Config.pod: config.sh configpm Porting/Glossary + $(LDLIBPTH) ./miniperl -Ilib configpm --heavy=lib/Config_heavy.pl lib/Config.pm + + $(CONFIGPM): lib/Config.pod + +-lib/ExtUtils/Miniperl.pm: miniperlmain.c miniperl$(EXE_EXT) minimod.pl $(CONFIGPM) ++lib/ExtUtils/Miniperl.pm: miniperlmain.c minimod.pl $(CONFIGPM) + $(LDLIBPTH) ./miniperl minimod.pl > lib/ExtUtils/Miniperl.pm + lib/re.pm: ext/re/re.pm - cp ext/re/re.pm ext/re/re.tmp && sh mv-if-diff ext/re/re.tmp lib/re.pm + cp ext/re/re.pm lib/re.pm --$(plextract): miniperl$(EXE_EXT) lib/Config.pm x2p/s2p -+$(plextract): lib/Config.pm x2p/s2p +-$(plextract): miniperl$(EXE_EXT) $(CONFIGPM) x2p/s2p ++$(plextract): $(CONFIGPM) x2p/s2p @-rm -f $@ - $(LDLIBPTH) ./miniperl -Ilib $@.PL + $(LDLIBPTH) ./miniperl -I`pwd`/lib $@.PL --x2p/s2p: miniperl$(EXE_EXT) lib/Config.pm x2p/s2p.PL -+x2p/s2p: lib/Config.pm x2p/s2p.PL +-x2p/s2p: miniperl$(EXE_EXT) $(CONFIGPM) x2p/s2p.PL ++x2p/s2p: $(CONFIGPM) x2p/s2p.PL cd x2p; $(LDLIBPTH) $(MAKE) s2p --lib/lib.pm: miniperl$(EXE_EXT) lib/Config.pm -+lib/lib.pm: lib/Config.pm +-lib/lib.pm: miniperl$(EXE_EXT) $(CONFIGPM) ++lib/lib.pm: $(CONFIGPM) @-rm -f $@ $(LDLIBPTH) ./miniperl -Ilib lib/lib_pm.PL + unidatafiles $(unidatafiles): uni.data + +-uni.data: miniperl$(EXE_EXT) $(CONFIGPM) lib/unicore/mktables ++uni.data: $(CONFIGPM) lib/unicore/mktables + cd lib/unicore && $(LDLIBPTH) ../../miniperl -I../../lib mktables -w + touch uni.data + -extra.pods: miniperl$(EXE_EXT) -+extra.pods: ++extra.pods: -@test -f extra.pods && rm -f `cat extra.pods` -@rm -f extra.pods -@for x in `grep -l '^=[a-z]' README.* | grep -v README.vms` ; do \ -@@ -796,18 +797,7 @@ +@@ -837,18 +838,7 @@ INSTALL_DEPENDENCE = all - + install.perl: $(INSTALL_DEPENDENCE) installperl - if [ -n "$(COMPILE)" ]; \ - then \ @@ -142,7 +148,7 @@ # XXX Experimental. Hardwired values, but useful for testing. # Eventually Configure could ask for some of these values. -@@ -923,16 +913,16 @@ +@@ -950,16 +940,16 @@ # # DynaLoader may be needed for extensions that use Makefile.PL. @@ -163,21 +169,21 @@ @$(LDLIBPTH) sh ext/util/make_ext nonxs $@ MAKE=$(MAKE) LIBPERL_A=$(LIBPERL) .PHONY: clean _tidy _mopup _cleaner1 _cleaner2 \ -@@ -1072,7 +1062,7 @@ +@@ -1101,7 +1091,7 @@ test_prep_pre: preplibrary utilities $(nonxs_ext) --test_prep: test_prep_pre miniperl$(EXE_EXT) perl$(EXE_EXT) $(dynamic_ext) $(TEST_PERL_DLL) -+test_prep: test_prep_pre perl$(EXE_EXT) $(dynamic_ext) $(TEST_PERL_DLL) +-test_prep: test_prep_pre miniperl$(EXE_EXT) $(unidatafiles) perl$(EXE_EXT) $(dynamic_ext) $(TEST_PERL_DLL) ++test_prep: test_prep_pre $(unidatafiles) perl$(EXE_EXT) $(dynamic_ext) $(TEST_PERL_DLL) PERL=./perl $(MAKE) _test_prep _test_tty: -@@ -1165,7 +1155,7 @@ +@@ -1214,7 +1204,7 @@ # Can't depend on lib/Config.pm because that might be where miniperl # is crashing. --minitest: miniperl$(EXE_EXT) lib/re.pm -+minitest: lib/re.pm - -@test -f lib/lib.pm && test -f lib/Config.pm || \ - $(MAKE) lib/Config.pm lib/lib.pm - @echo " " +-minitest: miniperl$(EXE_EXT) lib/re.pm minitest.prep ++minitest: lib/re.pm minitest.prep + - cd t && (rm -f perl$(EXE_EXT); $(LNS) ../miniperl$(EXE_EXT) perl$(EXE_EXT)) \ + && $(LDLIBPTH) ./perl TEST -minitest base/*.t comp/*.t cmd/*.t run/*.t io/*.t op/*.t uni/*.t </dev/tty + |