From 90696bd9dfc1b5b0117ceba8cb44ce77b8305092 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Tue, 18 Jul 2017 19:02:11 +0200 Subject: added -fno-inline to avoid clang 4.0.1 to break vsprintf with va_args when inlined --- tests/libc/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/libc/Makefile b/tests/libc/Makefile index 37c383a..cf78271 100644 --- a/tests/libc/Makefile +++ b/tests/libc/Makefile @@ -2,7 +2,9 @@ CC := gcc DEFINES = -DOS_LINUX OPT := -O0 INCLUDES = -I. -I../../src/libc -I../../src/kernel -I/home/abaumann/cross-compilers/include -CFLAGS := -std=c99 -m32 -ffreestanding $(OPT) -g -Wall -Werror $(INCLUDES) $(DEFINES) +# clang 4.0.1 needs -fno-inline, other va_ functions get inlined and +# va_xxx macros segfault +CFLAGS := -fno-inline -std=c99 -m32 -ffreestanding $(OPT) -g -Wall -Werror $(INCLUDES) $(DEFINES) LD := $(CC) LDFLAGS := NASMFLAGS := -f elf32 -- cgit v1.2.3-54-g00ecf