summaryrefslogtreecommitdiff
path: root/Makefile.SH
diff options
context:
space:
mode:
authorLarry Wall <lwall@jpl-devvax.jpl.nasa.gov>1989-10-26 10:31:40 +0000
committerLarry Wall <lwall@jpl-devvax.jpl.nasa.gov>1989-10-26 10:31:40 +0000
commit03a14243eca2d4d041778dac4abcfa3a19c06a56 (patch)
tree0b50fc4dff9a7d56bb58af5bffcfeb7fa3cc49fa /Makefile.SH
parenta687059cbaf2c6fdccb5e0fae2aee80ec15625a8 (diff)
downloadperl-03a14243eca2d4d041778dac4abcfa3a19c06a56.tar.gz
perl 3.0 patch #1 (combined patch)
Configure had difficulties if the user's path had weird components. Now Configure appends the user's path to its own. Some machines need <netinet/in.h> included in order to define certain macros for packing or unpacking network order data. On Suns, the shared library is used by default. If it doesn't contain something contained in /lib/libc.a, then Configure was getting things wrong (such as gethostent()). Now Configure uses the shared library if it's there in preference to libc.a. When gcc was selected as the compiler, the cc flags defaulted to -fpcc_struct_return. Unfortunately, the underlines should be hyphens. Configure figures out if BSD shadow passwords are installed and the getpw* routines now return slightly different data in the affected fields. Some of the prompts in Configure with regard to gid and uid types were unclear as to their intended use. They are now a little clearer. Sometimes you could change a .h file and taintperl and suidperl didn't get remade correctly because of missing dependencies in the Makefile. The README file was misleading about the fact that you have to say "make test" before you can "cd t; TEST" The reverse operator was busted in two different ways. Should work better now. There are now regression tests for it. Some of the optimizations that perl does are disabled after period of time if perl decides they aren't doing any good. One of these caused a string to be freed that was later referenced via another pointer, causing core dumps. The free turned out to be unnecessary, so it was removed. The unless modifier was broken when run under the debugger, due to the invert() routine in perl.y inverting the logic on the DB subroutine call instead of the command the unless was modifying. Configure vfork test was backwards. It now works like other defines. The numeric switch optimization was broken, and caused code to be bypassed. This has been fixed. A split in a subroutine that has no target splits into @_. Unfortunately, this wrongly freed any referenced arguments passed in through @_, causing confusing behavior later in the program. File globbing (<foo.*>) left one orphaned string each time it called the shell to do the glob. RCS expanded an unintended $Header in lib/perldb.pl. This has been fixed simply by replacing the $ with a . Some forward declarations of static functions were missing from malloc.c. There's a strut in malloc for mips machines to extend the overhead union to the size of a double. This was also enabled for sparc machines. DEC risc machines are reported to have a buggy memcmp. I've put some conditional code into perl.h which I think will undef MEMCMP appropriately. In perl.man.4, I documented the desirability of using parens even where they aren't strictly necessary. I've grandfathered "format stdout" to be the same as "format STDOUT". Unary operators can be called with no argument. The corresponding function call form using empty parens () didn't work right, though it did for certain functions in 2.0. It now works in 3.0. The string ordering tests were wrong for pairs of strings in which one string was a prefix of the other. This affected lt, le, gt, ge, and the sort operator when used with no subroutine. $/ didn't work with the stupid code used when STDSTDIO was undefined. The stupid code has been replaced with smarter code that can do it right. Special thanks to Piet van Oostrum for the code. Goulds work better if the union in STR is at an 8 byte boundary. The fields were rearranged somewhat to provide this. "sort keys %a" should now work right (though parens are still desirable for readability). bcopy() needed a forward declaration on some machines. In x2p/Makefile.SH, added dependency on ../config.sh so that it gets linked down from above if it got removed for some reason.
Diffstat (limited to 'Makefile.SH')
-rw-r--r--Makefile.SH49
1 files changed, 25 insertions, 24 deletions
diff --git a/Makefile.SH b/Makefile.SH
index 6e66a4c7ed..6cb270f133 100644
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -25,9 +25,12 @@ esac
echo "Extracting Makefile (with variable substitutions)"
cat >Makefile <<!GROK!THIS!
-# $Header: Makefile.SH,v 3.0 89/10/18 15:06:43 lwall Locked $
+# $Header: Makefile.SH,v 3.0.1.1 89/10/26 23:00:38 lwall Locked $
#
# $Log: Makefile.SH,v $
+# Revision 3.0.1.1 89/10/26 23:00:38 lwall
+# patch1: Makefile.SH needed some more .h dependecies
+#
# Revision 3.0 89/10/18 15:06:43 lwall
# 3.0 baseline
#
@@ -125,122 +128,121 @@ taintperl: tperl.o tperly.o $(tobj)
# Replicating all this junk is yucky, but I don't see a portable way to fix it.
-tperl.o: perl.c perly.h perl.h EXTERN.h regexp.h util.h INTERN.h handy.h \
- config.h stab.h
+tperl.o: perl.c perly.h $(h)
/bin/rm -f tperl.c
$(SLN) perl.c tperl.c
$(CC) -c -DTAINT $(CFLAGS) $(LARGE) tperl.c
/bin/rm -f tperl.c
-tperly.o: perly.c
+tperly.o: perly.c perly.h $(h)
/bin/rm -f tperly.c
$(SLN) perly.c tperly.c
$(CC) -c -DTAINT $(CFLAGS) $(LARGE) tperly.c
/bin/rm -f tperly.c
-sperly.o: perly.c perl.h handy.h perly.h patchlevel.h
+sperly.o: perly.c perly.h patchlevel.h $(h)
/bin/rm -f sperly.c
$(SLN) perly.c sperly.c
$(CC) -c -DTAINT -DIAMSUID $(CFLAGS) $(LARGE) sperly.c
/bin/rm -f sperly.c
-tarray.o: array.c
+tarray.o: array.c $(h)
/bin/rm -f tarray.c
$(SLN) array.c tarray.c
$(CC) -c -DTAINT $(CFLAGS) $(LARGE) tarray.c
/bin/rm -f tarray.c
-tcmd.o: cmd.c
+tcmd.o: cmd.c $(h)
/bin/rm -f tcmd.c
$(SLN) cmd.c tcmd.c
$(CC) -c -DTAINT $(CFLAGS) $(LARGE) tcmd.c
/bin/rm -f tcmd.c
-tcons.o: cons.c
+tcons.o: cons.c $(h)
/bin/rm -f tcons.c
$(SLN) cons.c tcons.c
$(CC) -c -DTAINT $(CFLAGS) $(LARGE) tcons.c
/bin/rm -f tcons.c
-tconsarg.o: consarg.c
+tconsarg.o: consarg.c $(h)
/bin/rm -f tconsarg.c
$(SLN) consarg.c tconsarg.c
$(CC) -c -DTAINT $(CFLAGS) $(LARGE) tconsarg.c
/bin/rm -f tconsarg.c
-tdoarg.o: doarg.c
+tdoarg.o: doarg.c $(h)
/bin/rm -f tdoarg.c
$(SLN) doarg.c tdoarg.c
$(CC) -c -DTAINT $(CFLAGS) $(LARGE) tdoarg.c
/bin/rm -f tdoarg.c
-tdoio.o: doio.c
+tdoio.o: doio.c $(h)
/bin/rm -f tdoio.c
$(SLN) doio.c tdoio.c
$(CC) -c -DTAINT $(CFLAGS) $(LARGE) tdoio.c
/bin/rm -f tdoio.c
-tdolist.o: dolist.c
+tdolist.o: dolist.c $(h)
/bin/rm -f tdolist.c
$(SLN) dolist.c tdolist.c
$(CC) -c -DTAINT $(CFLAGS) $(LARGE) tdolist.c
/bin/rm -f tdolist.c
-tdump.o: dump.c
+tdump.o: dump.c $(h)
/bin/rm -f tdump.c
$(SLN) dump.c tdump.c
$(CC) -c -DTAINT $(CFLAGS) $(LARGE) tdump.c
/bin/rm -f tdump.c
-teval.o: eval.c
+teval.o: eval.c $(h)
/bin/rm -f teval.c
$(SLN) eval.c teval.c
$(CC) -c -DTAINT $(CFLAGS) $(LARGE) teval.c
/bin/rm -f teval.c
-tform.o: form.c
+tform.o: form.c $(h)
/bin/rm -f tform.c
$(SLN) form.c tform.c
$(CC) -c -DTAINT $(CFLAGS) $(LARGE) tform.c
/bin/rm -f tform.c
-thash.o: hash.c
+thash.o: hash.c $(h)
/bin/rm -f thash.c
$(SLN) hash.c thash.c
$(CC) -c -DTAINT $(CFLAGS) $(LARGE) thash.c
/bin/rm -f thash.c
-tregcomp.o: regcomp.c
+tregcomp.o: regcomp.c $(h)
/bin/rm -f tregcomp.c
$(SLN) regcomp.c tregcomp.c
$(CC) -c -DTAINT $(CFLAGS) $(LARGE) tregcomp.c
/bin/rm -f tregcomp.c
-tregexec.o: regexec.c
+tregexec.o: regexec.c $(h)
/bin/rm -f tregexec.c
$(SLN) regexec.c tregexec.c
$(CC) -c -DTAINT $(CFLAGS) $(LARGE) tregexec.c
/bin/rm -f tregexec.c
-tstab.o: stab.c
+tstab.o: stab.c $(h)
/bin/rm -f tstab.c
$(SLN) stab.c tstab.c
$(CC) -c -DTAINT $(CFLAGS) $(LARGE) tstab.c
/bin/rm -f tstab.c
-tstr.o: str.c
+tstr.o: str.c $(h)
/bin/rm -f tstr.c
$(SLN) str.c tstr.c
$(CC) -c -DTAINT $(CFLAGS) $(LARGE) tstr.c
/bin/rm -f tstr.c
-ttoke.o: toke.c
+ttoke.o: toke.c $(h)
/bin/rm -f ttoke.c
$(SLN) toke.c ttoke.c
$(CC) -c -DTAINT $(CFLAGS) $(LARGE) ttoke.c
/bin/rm -f ttoke.c
-tutil.o: util.c
+tutil.o: util.c $(h)
/bin/rm -f tutil.c
$(SLN) util.c tutil.c
$(CC) -c -DTAINT $(CFLAGS) $(LARGE) tutil.c
@@ -252,8 +254,7 @@ perl.c perly.h: perl.y
mv y.tab.c perl.c
mv y.tab.h perly.h
-perl.o: perl.c perly.h perl.h EXTERN.h regexp.h util.h INTERN.h handy.h \
- config.h arg.h stab.h
+perl.o: perl.c perly.h $(h)
$(CC) -c $(CFLAGS) $(LARGE) perl.c
perl.man: perl.man.1 perl.man.2 perl.man.3 perl.man.4 patchlevel.h perl