[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 6:32 PM, Lars Boegild Thomsen
<lth@xxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> On Sunday 24 May 2015 20:32:41 Ondrej Mikle wrote:
>> 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).
>
> Read my first message with this topic. That was my very first attempt. Unfortunately
> that resulted in a lot of new errors which I think was autoconf related mostly. I have
> no idea why that happened.
I see -std=c99 in there, not -std=gnu99.
If -std=gnu99 does not work, try adding -D_GNU_SOURCE=1 or
-D_XOPEN_SOURCE=700. If neither of those work, root around in
uClibc's header files for other macros named _SOMETHING_SOURCE to try.
zw
_______________________________________________
tor-dev mailing list
tor-dev@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev