From e22b08fa0b014d921954a0266c57cfb646954d99 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 7 Jan 2019 07:13:23 -0500 Subject: project: added cflags for memory functions. --- project/extras.mk | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/project/extras.mk b/project/extras.mk index 86d9040..1fb17fb 100644 --- a/project/extras.mk +++ b/project/extras.mk @@ -24,3 +24,16 @@ CFLAGS_COMMON += -fno-unwind-tables CFLAGS_COMMON += -fno-asynchronous-unwind-tables CFLAGS_COMMON += -frounding-math CFLAGS_COMMON += -fexcess-precision=standard + +# memory modules +libc_mem_modules = \ + ./src/string/memcpy.c \ + ./src/string/memmove.c \ + ./src/string/memcmp.c \ + ./src/string/memset.c + +libc_mem_objs = $(libc_mem_modules:%.c=%.o) +libc_mem_lobjs = $(libc_mem_modules:%.c=%.lo) + +$(libc_mem_objs): CFLAGS_CONFIG += -fno-tree-loop-distribute-patterns +$(libc_mem_lobjs): CFLAGS_CONFIG += -fno-tree-loop-distribute-patterns -- cgit v1.2.3