mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-25 16:47:20 +08:00
5230eb7f8c
- add support for using sysconf to get page size in _mallocr.c via HAVE_SYSCONF_PAGESIZE flag set in configure.host - set flag in configure.host for arm and add a default sysconf implementation in libc/sys/arm that returns the page size - the default implementation can be overridden outside newlib to allow a different page size to improve malloc on devices with a small footprint without needing to rebuild newlib - this patch is based on a contribution from Torbjorn Svensson and Niklas Dahlquist (https://ecos.sourceware.org/ml/newlib/current/017616.html)
7 lines
200 B
Makefile
7 lines
200 B
Makefile
AM_CPPFLAGS_%C% = -I$(srcdir)/libc/machine/arm
|
|
|
|
libc_a_SOURCES += %D%/access.c %D%/aeabi_atexit.c %D%/sysconf.c
|
|
if MAY_SUPPLY_SYSCALLS
|
|
libc_a_SOURCES += %D%/libcfunc.c %D%/trap.S %D%/syscalls.c
|
|
endif
|