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 <linux/ioctl.h> header from the 
> host - which is obviously missing on MacOS.

This is a problem since ioctlsort.c needs <linux/ioctl.h>
from the target system, not from the host system.

One probably can take necessary definitions from the target
<linux/ioctl.h> using a cross-preprocessor and use them
in ioctlsort.c instead of <linux/ioctl.h>.


-- 
ldv

Attachment: pgpX1qAgh3Oqu.pgp
Description: PGP signature

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to