work around gcc 4.8's generation of self-referential mem* functions at -O3
This commit is contained in:
parent
5db951ef80
commit
4a1f55e92f
2 changed files with 13 additions and 0 deletions
3
Makefile
3
Makefile
|
|
@ -87,6 +87,9 @@ crt/Scrt1.o: CFLAGS += -fPIC
|
|||
OPTIMIZE_SRCS = $(wildcard $(OPTIMIZE_GLOBS:%=src/%))
|
||||
$(OPTIMIZE_SRCS:%.c=%.o) $(OPTIMIZE_SRCS:%.c=%.lo): CFLAGS += -O3
|
||||
|
||||
MEMOPS_SRCS = src/string/memcpy.c src/string/memmove.c src/string/memcmp.c src/string/memset.c
|
||||
$(MEMOPS_SRCS:%.c=%.o) $(MEMOPS_SRCS:%.c=%.lo): CFLAGS += $(CFLAGS_MEMOPS)
|
||||
|
||||
%.o: $(ARCH)/%.s
|
||||
$(CC) $(CFLAGS_ALL_STATIC) -c -o $@ $<
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue