This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: Altering compile flags for newlib
- From: Vasili Galka <vvv444 at gmail dot com>
- To: Jon Beniston <jon at beniston dot com>, Daniel Calcoen <Daniel dot Calcoen at cern dot ch>
- Cc: "newlib at sourceware dot org" <newlib at sourceware dot org>
- Date: Sun, 18 Aug 2013 16:32:55 +0300
- Subject: Re: Altering compile flags for newlib
- References: <CA+gZxsOCpBAd7kmdHc+Kc-VozaBX_6zrK8ffPiy43gMJ1thmjg at mail dot gmail dot com> <002601ce8796$99286a90$cb793fb0$ at beniston dot com> <46996EF9723066478746F941CF170BB8C6FF1FE1 at CERNXCHG01 dot cern dot ch> <CA+gZxsOBrOSLHBLAaVcM_oy=-LVqaxyDeCXVE655VfGFFqpVyg at mail dot gmail dot com>
Hi,
I have just noticed that CFLAGS_FOR_TARGET affects libc and libm but
not libnosys.
Is this intentional? Please advice how I can alter build flags for libnosys.
Regards,
Vasili
On Tue, Jul 23, 2013 at 3:16 PM, Vasili Galka <vvv444@gmail.com> wrote:
> Hi,
>
> Jon, thank you very much! It works!
>
> Daniel, Jon suggested using CFLAGS_FOR_TARGET and not CFLAGS. Have you
> tried that?
>
> Best,
> Vasili
>
> On Tue, Jul 23, 2013 at 2:29 PM, Daniel Calcoen <Daniel.Calcoen@cern.ch> wrote:
>> 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
>>