This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Altering compile flags for newlib


Hi,

When I wanted the specific defines REENTRANT_SYSCALLS_PROVIDED, INTERNAL_NEWLIB DEFINE_MALLOC, DEFINE_FREE, DEFINE_REALLOC, DEFINE_CALLOC. 
(may be because my targets are rx-elf and m32c-elf)  and try via CFLAGS it didn't work.

I finished patching source/newlib/newlib/configure.host
adding in the last case "${host}" in
the case
rx-*-*)
default_newlib_io_long_long="yes"
newlib_cflags="${newlib_cflags} -Os -DREENTRANT_SYSCALLS_PROVIDED -DINTERNAL_NEWLIB -DDEFINE_MALLOC -DDEFINE_FREE -DDEFINE_REALLOC -DDEFINE_CALLOC"
syscall_dir=
;;
(and in similar way for m32c-*-* )

because the case rx-*-* was not defined and was passing at default adding always -DMISSING_SYSCALL_NAMES what was not good for me.

Daniel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]