[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-dev] OpenWrt cross compile build error in 0.2.6.8



On Sun, May 24, 2015 at 2:32 PM, Ondrej Mikle <ondrej.mikle@xxxxxxxxx> wrote:
> On 05/24/2015 05:19 AM, Lars Boegild Thomsen wrote:
>> On Friday 22 May 2015 09:20:29 Shawn Nock wrote:
>>> Will you post the Makefile for the buildroot package?
>>
>> Sorry guys, I sorted this one out.  The culprit was actually my added -std=c99 that made lots of other stuff break.  Taking that out it boiled down to a few uses of:
>>
>> for (int i = 0; ......
>
> There is also patchless way by adding "-std=gnu99" to CFLAGS (aside from C99 it
> enables GNU extensions needed for compiling against uClibc on OpenWrt).
>
> I think it's better approach since you won't need to patch every C99-style loop
> initializer in the future.
>

+1 to Ondrej here.  Going forward, I'm not interested in supporting pre-99 C.

-- 
Nick
_______________________________________________
tor-dev mailing list
tor-dev@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev