2011-12-22 15:19:25 +00:00
|
|
|
#
|
|
|
|
# Portion of the string library that is used by both the freestanding string
|
|
|
|
# library and the complete libc
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# These files would infect the freestanding string library with the locale
|
|
|
|
# library
|
|
|
|
#
|
|
|
|
FILTER_OUT = strcoll.c strxfrm.c wcscoll.c wcsxfrm.c
|
|
|
|
|
2014-05-07 21:52:52 +00:00
|
|
|
LIBC_STRING_DIR = $(LIBC_DIR)/lib/libc/string
|
2011-12-22 15:19:25 +00:00
|
|
|
|
|
|
|
SRC_C = $(filter-out $(FILTER_OUT),$(notdir $(wildcard $(LIBC_STRING_DIR)/*.c)))
|
|
|
|
|
2021-04-03 09:36:30 +00:00
|
|
|
# prevent the generation of a 'memset()' call in 'memset()'
|
|
|
|
CC_OPT_memset += -fno-tree-loop-distribute-patterns
|
|
|
|
|
2022-11-01 16:14:54 +00:00
|
|
|
override CC_OLEVEL := -O3
|
|
|
|
|
2011-12-22 15:19:25 +00:00
|
|
|
include $(REP_DIR)/lib/mk/libc-common.inc
|
|
|
|
|
|
|
|
vpath %.c $(LIBC_STRING_DIR)
|
2018-01-03 17:40:54 +00:00
|
|
|
|
|
|
|
CC_CXX_WARN_STRICT =
|