[tor-dev] OpenWrt cross compile build error in 0.2.6.8
Ondrej Mikle
ondrej.mikle at gmail.com
Sun May 24 18:32:41 UTC 2015
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.
Ondrej
More information about the tor-dev
mailing list