This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: Compiling subset of newlib
- From: Alexander Kurakin <kuraga333 at mail dot ru>
- To: newlib <newlib at sourceware dot org>
- Date: Sat, 12 Nov 2016 21:14:42 +0300
- Subject: Re: Compiling subset of newlib
- Authentication-results: sourceware.org; auth=none
- Authentication-results: f142.i.mail.ru; auth=pass smtp.auth=kuraga333 at mail dot ru smtp.mailfrom=kuraga333 at mail dot ru
- References: <1478960101.354783419@f286.i.mail.ru> <5e0a08aa-676c-eea3-f2de-a60ab9d5e0e8@oarcorp.com>
- Reply-to: Alexander Kurakin <kuraga333 at mail dot ru>
Joel, thanks for reply!
Yes you're right but I think it's a good idea to avoid usage of functions which are stubs only instead.
Do you mean options like --disable-newlib-supplied-syscalls or more complex?
--
Alexander Kurakin
>Суббота, 12 ноября 2016, 20:05 +03:00 от Joel Sherrill <joel.sherrill@oarcorp.com>:
>
>On 11/12/2016 8:15 AM, Alexander Kurakin wrote:
>> Good day!
>>
>> I want to compile a subset of Newlib. For own toy OS (ttarget is ST32F4xx based on ARM). It provides _exit, environ, sbrk and times. So I want to have functions like strle, printf, etc.
>>
>> How do I do this? Thanks.
>>
>>
>
>Why do you need to do this? Only the methods you link in
>and their dependencies will end up in your statically
>linked executable.
>
>You probably want to turn on the options for smaller
>targets from the configure list. See the configure --help
>output for ideas.
>
>--joel