Re: [PATCH] Re: cross-compiling strace on non-Linux build

2017-01-12 Thread Dmitry V. Levin
On Thu, Jan 12, 2017 at 07:13:08PM -0800, Alexey Neyman wrote: > Updated patch attached. > > On 01/12/2017 05:58 PM, Dmitry V. Levin wrote: > >1st, I slightly prefer ioctl_iocdef over ioctls_iocdef. > >2nd, we usually keep intermediate targets. > >3rd, the right way to invoke the preprocessor is $

Re: [PATCH] Re: cross-compiling strace on non-Linux build

2017-01-12 Thread Alexey Neyman
Updated patch attached. On 01/12/2017 05:58 PM, Dmitry V. Levin wrote: 1st, I slightly prefer ioctl_iocdef over ioctls_iocdef. 2nd, we usually keep intermediate targets. 3rd, the right way to invoke the preprocessor is $(CPP) with all its options. 4th, sed after grep is a bad shell style. 5th, l

Re: [PATCH] Re: cross-compiling strace on non-Linux build

2017-01-12 Thread Dmitry V. Levin
On Thu, Jan 12, 2017 at 01:34:13PM -0800, Alexey Neyman wrote: >>From 13ebccef9a6fd13e2af6060f8e0f8d8700ecb261 Mon Sep 17 00:00:00 2001 > From: Alexey Neyman > Date: Thu, 12 Jan 2017 13:15:59 -0800 > Subject: [PATCH] Get ioctl definitions from host, not build. Please prefix with a component and o

Re: [PATCH] Re: cross-compiling strace on non-Linux build

2017-01-12 Thread Alexey Neyman
On 01/12/2017 01:20 PM, Alexey Neyman wrote: Please find the patch attached. There was a typo in commit message, sorry: s/target/build/. Updated patch attached. Regards, Alexey. >From 13ebccef9a6fd13e2af6060f8e0f8d8700ecb261 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Thu, 12 Jan 2017

[PATCH] Re: cross-compiling strace on non-Linux build

2017-01-12 Thread Alexey Neyman
On 01/12/2017 05:37 AM, Dmitry V. Levin wrote: Hi, On Wed, Jan 11, 2017 at 10:58:26PM -0800, Alexey Neyman wrote: Hi, I've encountered a problem with cross-compiling strace - as a part of crosstool-ng on MacOS [1]. While compiling ioctlsort.c, strace uses CC_FOR_BUILD, so it wants to include

Re: cross-compiling strace on non-Linux build

2017-01-12 Thread Dmitry V. Levin
Hi, On Wed, Jan 11, 2017 at 10:58:26PM -0800, Alexey Neyman wrote: > Hi, > > I've encountered a problem with cross-compiling strace - as a part of > crosstool-ng on MacOS [1]. While compiling ioctlsort.c, strace uses > CC_FOR_BUILD, so it wants to include header from the > host - which is obv