diff --git a/Makefile b/Makefile index db9cf208..c18fd434 100644 --- a/Makefile +++ b/Makefile @@ -67,7 +67,7 @@ test: test-contribs test-nostdlib test-contribs: bin/picrin $(CONTRIB_TESTS) test-nostdlib: - $(CC) -I extlib/benz/include -D'PIC_ENABLE_LIBC=0' -D'PIC_ENABLE_FLOAT=0' -D'PIC_ENABLE_STDIO=0' -nostdlib -fPIC -shared -std=c89 -pedantic -Wall -Wextra -Werror -o lib/libbenz.so $(BENZ_SRCS) etc/libc_polyfill.c -fno-stack-protector + $(CC) -I extlib/benz/include -D'PIC_ENABLE_LIBC=0' -D'PIC_ENABLE_FLOAT=0' -D'PIC_ENABLE_STDIO=0' -ffreestanding -nostdlib -fPIC -shared -std=c89 -pedantic -Wall -Wextra -Werror -o lib/libbenz.so $(BENZ_SRCS) etc/libc_polyfill.c -fno-stack-protector rm -f lib/libbenz.so install: all diff --git a/extlib/benz/error.c b/extlib/benz/error.c index c50fc85d..b75223d8 100644 --- a/extlib/benz/error.c +++ b/extlib/benz/error.c @@ -7,7 +7,7 @@ void pic_panic(pic_state PIC_UNUSED(*pic), const char *msg) { - extern void abort(); + extern PIC_NORETURN void abort(); #if DEBUG fprintf(stderr, "abort: %s\n", msg);