summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-08-01 17:12:23 -0400
committerRich Felker <dalias@aerifal.cx>2013-08-01 17:12:23 -0400
commit4a1f55e92fa74ee382909baa96302231f566b5e1 (patch)
tree0b0cc0ee79ce1a859f1a62a3e0b79c8fde411450 /Makefile
parent5db951ef80cae8b627f95b995811bf916c069757 (diff)
downloadmusl-4a1f55e92fa74ee382909baa96302231f566b5e1.tar.gz
musl-4a1f55e92fa74ee382909baa96302231f566b5e1.tar.bz2
musl-4a1f55e92fa74ee382909baa96302231f566b5e1.tar.xz
musl-4a1f55e92fa74ee382909baa96302231f566b5e1.zip
work around gcc 4.8's generation of self-referential mem* functions at -O3
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
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 $@ $<