openbsd-ports/print/teTeX/base/patches/patch-bug-gcc
marc 1828f4b958 Fix mpost bus error on sparc but compiling with -O
patch from espie@, tested by me
1999-09-20 03:37:15 +00:00

37 lines
1.1 KiB
Plaintext

--- texk/web2c/Makefile.in.orig Sat Jun 26 06:12:25 1999
+++ texk/web2c/Makefile.in Tue Aug 24 08:49:10 1999
@@ -341,7 +341,7 @@
# which we use to make the other programs.
tangle.p: tangleboot tangle.web tangle.ch
$(shared_env) ./tangleboot $(srcdir)/tangle.web $(srcdir)/tangle.ch
-tangle.web:
+$(srcdir)/tangle.web:
@echo "You seem to be missing tangle.web, perhaps because you" >&2
@echo "didn't retrieve web.tar.gz, only web2c.tar.gz." >&2
@echo "You need both." >&2
@@ -360,7 +360,7 @@
stamp-tangle: tangleboot.p
date >stamp-tangle
# This is not run unless tangle.web or tangle.ch is changed.
-tangleboot.p: tangle.web tangle.ch
+$(srcdir)/tangleboot.p: tangle.web tangle.ch
$(shared_env) ./tangle $(srcdir)/tangle.web $(srcdir)/tangle.ch
mv tangle.p tangleboot.p
date >stamp-tangle
@@ -1062,3 +1062,15 @@
# Local variables:
# page-delimiter: "^# \f"
# End:
+
+# pre-2.95.1 work-around
+gftopk.o: gftopk.c
+ $(compile) -O0 gftopk.c
+
+# sparc bug work-around
+mfini.o: mfini.c
+ $(compile) -O0 mfini.c
+
+# sparc bug work-around
+mpini.o: mpini.c
+ $(compile) -O0 mpini.c