From ed4d32c28adc5f00ee9bc0e4ac785eeff5e1dc74 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 28 Mar 2015 14:09:11 -0400 Subject: sim: sh: clean up gencode The build line was missing the normal BUILD_xxx flags. Once we added that, we get warnings that weren't shown before. As we fix those, we notice that the -d option segfaults because it tries to write readonly memory. Fix that too as part of the const/prototype clean up. --- sim/sh/Makefile.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sim/sh/Makefile.in') diff --git a/sim/sh/Makefile.in b/sim/sh/Makefile.in index 61422ab..0594a6e 100644 --- a/sim/sh/Makefile.in +++ b/sim/sh/Makefile.in @@ -41,7 +41,8 @@ ppi.c: gencode ./gencode -p >ppi.c gencode: gencode.c - $(CC_FOR_BUILD) -o gencode $(srcdir)/gencode.c + $(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) $(WARN_CFLAGS) \ + -o gencode $(srcdir)/gencode.c sh-clean: rm -f gencode code.c table.c -- cgit v1.1