diff options
author | Alexey Neyman <stilor@att.net> | 2017-01-15 00:38:52 (GMT) |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2017-01-16 17:07:59 (GMT) |
commit | fb426ac912f46889548a863a50a310b8d359307e (patch) | |
tree | a90cd54a42a36ffbcc81ae2f29cde1947cb1c012 /scripts/build/debug/500-strace.sh | |
parent | ebf82e8215ebba8d0eb74038de59b530ae1d12cc (diff) |
Replace strace workaround with a patch.
The correct solution was checked in to strace GIT; will be part of the
next release. Backport patch to 4.10..4.15, and remove the workaround
from 500-strace.sh. Versions 4.9 and older should build fine even
without the workaround (they would be picking up wrong definitions,
but they need different patch and I don't feel like spending any time
on these versions).
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/build/debug/500-strace.sh')
-rw-r--r-- | scripts/build/debug/500-strace.sh | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/scripts/build/debug/500-strace.sh b/scripts/build/debug/500-strace.sh index da0e2f5..2d8c7df 100644 --- a/scripts/build/debug/500-strace.sh +++ b/scripts/build/debug/500-strace.sh @@ -15,22 +15,10 @@ do_debug_strace_extract() { do_debug_strace_build() { CT_DoStep INFO "Installing strace" - # Strace needs _IOC definitions, and it tries to pick them up from <linux/ioctl.h>. - # While cross-compiling on a non-Linux host, we don't have this header. Replacing - # <linux/ioctl.h> with <sys/ioctl.h>, as suggested by many internet "solutions", - # is wrong: for example, MacOS defines _IOC macros differently, and we need the - # definitions for the target! - # Hence, create a "window" into target includes. - CT_DoExecLog ALL mkdir -p "${CT_BUILD_DIR}/build-strace-headers" - for d in linux asm asm-generic; do - CT_DoExecLog ALL ln -sf "${CT_HEADERS_DIR}/${d}" "${CT_BUILD_DIR}/build-strace-headers/${d}" - done - CT_mkdir_pushd "${CT_BUILD_DIR}/build-strace" CT_DoLog EXTRA "Configuring strace" CT_DoExecLog CFG \ - CFLAGS_FOR_BUILD="-I ${CT_BUILD_DIR}/build-strace-headers" \ CC="${CT_TARGET}-${CT_CC}" \ CPP="${CT_TARGET}-cpp" \ LD="${CT_TARGET}-ld" \ |