summaryrefslogtreecommitdiffhomepage
path: root/project
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-01-07 07:13:23 -0500
committermidipix <writeonce@midipix.org>2019-01-09 22:43:15 -0500
commite22b08fa0b014d921954a0266c57cfb646954d99 (patch)
treeee8383c79ee47bce6ebda8d75eca8f6508f58eb9 /project
parentd01251ad51c9c3ee5cab3b824d8d49670cc1bc66 (diff)
downloadmmglue-e22b08fa0b014d921954a0266c57cfb646954d99.tar.bz2
mmglue-e22b08fa0b014d921954a0266c57cfb646954d99.tar.xz
project: added cflags for memory functions.
Diffstat (limited to 'project')
-rw-r--r--project/extras.mk13
1 files changed, 13 insertions, 0 deletions
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