diff options
Diffstat (limited to 'tests/libc/Makefile')
-rw-r--r-- | tests/libc/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
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 |