Update compilation flags to exclude...#2
Update compilation flags to exclude...#2Frans-Willem wants to merge 1 commit intoprojectgus:xtensa-2_2_0-lockfrom
Conversation
malloc and free, signal related functions, and an abort implementation that would pull in file-io related functions.
|
Hi Frans-Willem, Thanks for sending this PR! I realised I hadn't really explained anywhere what this fork is for, either. I just updated the description and added a relevant link to https://github.com/SuperHouse/esp-open-rtos/wiki/libc-configuration To give some history as well, the original reason I forked from @jcmvbkbc's newlib-xtensa was to add support for linking in FreeRTOS-friendly locking primitives. But then I ended up updating newlib to 2.2.0 in order to bring in the "nano" formatting routines as well. What are you using it for? It seems like we may have different purposes in mind, but I'd still be happy to work towards a codebase that suits everyone if we can find one. Regarding the specific additions to the xtensa CFLAGS:
In terms of finding a single codebase solution, I think part of the problem is that |
|
Hey, I'm using it as a generic newlib for esp8266 development. Seeing as the SDK already provides os_malloc, I figured malloc shouldn't be provided by newlib, especially since there's no sbrk implementation anyway. I wonder if it'd be possible to change some of these things from ./configure. I'd rather have one main newlib repository for ESP8266/xtensa-lx106 development (possibly even mainlined?) than have different versions for different purposes :/ |
|
Sorry for the slow reply. I'm a bit stuck on how exactly to do this. Passing CFLAGS= or TARGET_CLAGS= options to ./configure seem to be ignored no matter how I set them. On the other hand configure.host seems to rely pretty heavily on the "one compiler tuplet equals one set of host flags" rule, so I can't find an easy way to have multiple options there either. Do you have any ideas? I can ask the newlib mailing list but I'd like to make really sure I'm not missing something obvious first. |
|
Figured out something that works. Configure as normal, and then do something like:
|
|
Ah, that's a good one too :) Either way, I agree with you about the fact that not all purposes require similar compilation flags, and I suppose both solutions are valid :) |
malloc and free, signal related functions, and an abort implementation that would pull in file-io related functions.