From b0d3b19a6a1c1e56589f1453ccb99dcde63257e2 Mon Sep 17 00:00:00 2001
From: Oliver Schmidt
Date: Wed, 26 Aug 2020 20:58:44 +0200
Subject: [PATCH] The bug1209 test fails at link stage.
---
test/misc/Makefile | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/test/misc/Makefile b/test/misc/Makefile
index 993a46bd4..1f7a788ba 100644
--- a/test/misc/Makefile
+++ b/test/misc/Makefile
@@ -74,19 +74,25 @@ $(WORKDIR)/bug760.$1.$2.prg: bug760.c | $(WORKDIR)
$(WORKDIR)/bug1209-ind-goto-rev.$1.$2.prg: bug1209-ind-goto-rev.c | $(WORKDIR)
@echo "FIXME: " $$@ "currently does not compile."
$(if $(QUIET),echo misc/bug1209-ind-goto-rev.$1.$2.prg)
- $(NOT) $(CC65) -t sim$2 -$1 -o $$@ $$< $(NULLERR)
+ $(CC65) -t sim$2 -$1 -o $$(@:.prg=.s) $$< $(NULLERR)
+ $(CA65) -t sim$2 -o $$(@:.prg=.o) $$(@:.prg=.s) $(NULLERR)
+ $(NOT) $(LD65) -t sim$2 -o $$@ $$(@:.prg=.o) sim$2.lib $(NULLERR)
# should compile, but gives an error
$(WORKDIR)/bug1209-ind-goto-rev-2.$1.$2.prg: bug1209-ind-goto-rev-2.c | $(WORKDIR)
@echo "FIXME: " $$@ "currently does not compile."
$(if $(QUIET),echo misc/bug1209-ind-goto-rev-2.$1.$2.prg)
- $(NOT) $(CC65) -t sim$2 -$1 -o $$@ $$< $(NULLERR)
+ $(CC65) -t sim$2 -$1 -o $$(@:.prg=.s) $$< $(NULLERR)
+ $(CA65) -t sim$2 -o $$(@:.prg=.o) $$(@:.prg=.s) $(NULLERR)
+ $(NOT) $(LD65) -t sim$2 -o $$@ $$(@:.prg=.o) sim$2.lib $(NULLERR)
# should compile, but gives an error
$(WORKDIR)/bug1209-ind-goto-rev-3.$1.$2.prg: bug1209-ind-goto-rev-3.c | $(WORKDIR)
@echo "FIXME: " $$@ "currently does not compile."
$(if $(QUIET),echo misc/bug1209-ind-goto-rev-3.$1.$2.prg)
- $(NOT) $(CC65) -t sim$2 -$1 -o $$@ $$< $(NULLERR)
+ $(CC65) -t sim$2 -$1 -o $$(@:.prg=.s) $$< $(NULLERR)
+ $(CA65) -t sim$2 -o $$(@:.prg=.o) $$(@:.prg=.s) $(NULLERR)
+ $(NOT) $(LD65) -t sim$2 -o $$@ $$(@:.prg=.o) sim$2.lib $(NULLERR)
# should compile, but gives an error
$(WORKDIR)/pptest2.$1.$2.prg: pptest2.c | $(WORKDIR)