[Toybox] NDK r18 build.

2018-10-07 Thread Rob Landley
I downloaded the release 18 NDK and installed it: sudo build/tools/make_standalone_toolchain.py --arch x86_64 --api 28 \ --install-dir /opt/android/x86_64 Then in order to build: export CROSS_COMPILE=/opt/android/x86_64/bin/llvm- LDFLAGS=--static make distclean make defconfig make

Re: [Toybox] [PATCH] libcutils isn't in the NDK.

2018-10-07 Thread Rob Landley
On 10/07/2018 11:30 AM, enh wrote: > Bug: https://github.com/landley/toybox/issues/43 This commit broke building on musl, because these: -static inline int get_sched_policy(int tid, void *policy) {return 0;} -static inline char *get_sched_policy_name(int policy) {return "unknown";} Need to be

Re: [Toybox] [PATCH] libcutils isn't in the NDK.

2018-10-07 Thread Rob Landley
On 10/07/2018 11:30 AM, enh wrote: > Bug: https://github.com/landley/toybox/issues/43 That fixes that one (once I pulled your email out of the spam filter, and yes I got unsubscribed from my own list again because gmail false positived on the "sorry if this one's a duplicate" email from earlier

[Toybox] [PATCH] libcutils isn't in the NDK.

2018-10-07 Thread enh
Bug: https://github.com/landley/toybox/issues/43 --- lib/portability.h | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) From 253004e1fcea162f053ecb10853ce8813589dc7c Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Sun, 7 Oct 2018 09:29:17 -0700 Subject: [PATCH] libcutils

Re: [Toybox] [PATCH] getconf: say "undefined" for sysconf/pathconf -1.

2018-10-07 Thread Rob Landley
Sigh, window got buried instead of sent, sorry if this is a duplicate... On 10/05/2018 05:30 PM, enh wrote: > +static void printconf(long v) > +{ > + if (v == -1) puts("undefined"); > + else printf("%ld\n", v); > +} > + ... > - if (!i) printf("%ld\n", sysconf(c->value)); > - else if (i==1)