diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-07-18 19:02:11 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2017-07-18 19:02:11 +0200 |
commit | 90696bd9dfc1b5b0117ceba8cb44ce77b8305092 (patch) | |
tree | cd9083f46bd2d76a77770a86b2b3f0b44cd9383b /tests/libc/Makefile | |
parent | f6f694455fb12c01d7df1d3833ba0125ec8add0c (diff) | |
download | abaos-90696bd9dfc1b5b0117ceba8cb44ce77b8305092.tar.gz abaos-90696bd9dfc1b5b0117ceba8cb44ce77b8305092.tar.bz2 |
added -fno-inline to avoid clang 4.0.1 to break vsprintf with va_args when inlined
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 |