Merge pull request #1480 from mdlemay/revise-clang-flags
galileo: Revise include flags for LLVM Clang
This commit is contained in:
commit
eef96f3ba7
|
@ -16,7 +16,12 @@ PROJECT_SOURCEFILES += newlib-syscalls.c
|
||||||
CONTIKI_CPU=$(CONTIKI)/cpu/x86
|
CONTIKI_CPU=$(CONTIKI)/cpu/x86
|
||||||
include $(CONTIKI)/cpu/x86/Makefile.x86_quarkX1000
|
include $(CONTIKI)/cpu/x86/Makefile.x86_quarkX1000
|
||||||
|
|
||||||
CFLAGS += -fno-stack-protector -nostdinc -I$(LIBC)/include -isystem $(LIBGCC_PATH)/include -isystem $(LIBGCC_PATH)/include-fixed
|
CFLAGS += -fno-stack-protector -I$(LIBC)/include
|
||||||
|
ifeq (clang,$(findstring clang,$(CC)))
|
||||||
|
CFLAGS += -nostdlibinc
|
||||||
|
else
|
||||||
|
CFLAGS += -nostdinc -isystem $(LIBGCC_PATH)/include -isystem $(LIBGCC_PATH)/include-fixed
|
||||||
|
endif
|
||||||
LDFLAGS += -nostdlib -L$(LIBC)/lib -L$(LIBGCC_PATH)/32
|
LDFLAGS += -nostdlib -L$(LIBC)/lib -L$(LIBGCC_PATH)/32
|
||||||
|
|
||||||
TARGET_LIBFILES += -lm -lc -lgcc
|
TARGET_LIBFILES += -lm -lc -lgcc
|
||||||
|
|
Loading…
Reference in a new issue