Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 617 Bytes

strace.md

File metadata and controls

31 lines (26 loc) · 617 Bytes

strace

Prerequisites

  • A toolchain compatible with the target architecture and operating system.

Prepare

Substitute arm-linux-gnueabihf with your toolchain's target triplet.

$ export TARGET=arm-linux-gnueabihf
$ export STATIC_ROOT=`readlink -f ~/${TARGET}-static`

Download

$ wget https://github.com/strace/strace/releases/download/v5.6/strace-5.6.tar.xz

Extract

$ tar xJf strace-5.6.tar.xz
$ cd strace-5.6

Build

$ mkdir build
$ cd build
$ ../configure --host="${TARGET}" --prefix="${STATIC_ROOT}" CFLAGS="-pthread" LDFLAGS="-static"
$ make
$ make install-strip