From 4a1f55e92fa74ee382909baa96302231f566b5e1 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 1 Aug 2013 17:12:23 -0400 Subject: work around gcc 4.8's generation of self-referential mem* functions at -O3 --- Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 96910bd2..00aa7069 100644 --- a/Makefile +++ b/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 $@ $< -- cgit v1.2.1