* commit '58a00b4977b6fa073a8f56d94d741b1e4cb49856': bionic: allow the board to customize MALLOC_ALIGNMENT
This commit is contained in:
commit
fd8bd2c432
1 changed files with 7 additions and 0 deletions
|
@ -465,6 +465,13 @@ ifeq ($(strip $(DEBUG_BIONIC_LIBC)),true)
|
|||
libc_common_cflags += -DDEBUG
|
||||
endif
|
||||
|
||||
# To customize dlmalloc's alignment, set BOARD_MALLOC_ALIGNMENT in
|
||||
# the appropriate BoardConfig.mk file.
|
||||
#
|
||||
ifneq ($(BOARD_MALLOC_ALIGNMENT),)
|
||||
libc_common_cflags += -DMALLOC_ALIGNMENT=$(BOARD_MALLOC_ALIGNMENT)
|
||||
endif
|
||||
|
||||
ifeq ($(TARGET_ARCH),arm)
|
||||
libc_common_cflags += -fstrict-aliasing
|
||||
libc_crt_target_cflags := -mthumb-interwork
|
||||
|
|
Loading…
Reference in a new issue