Skip to content

Instantly share code, notes, and snippets.

@AhnMo
Created April 18, 2019 15:43
Show Gist options
  • Save AhnMo/85111ffdf5fc2aa363d75a2b8a238d0f to your computer and use it in GitHub Desktop.
Save AhnMo/85111ffdf5fc2aa363d75a2b8a238d0f to your computer and use it in GitHub Desktop.
# get strace-4.21.tar.xz from https://sourceforge.net/projects/strace/files/strace/4.21/
tar -xJf strace-4.21.tar.xz
cd strace-4.21
export STAGING_DIR=/home/user/source/staging_dir
export TOOLCHAIN_DIR=$STAGING_DIR/toolchain-mipsel_24kc_gcc-7.3.0_musl
export LDCFLAGS=$TOOLCHAIN_DIR/usr/lib
export LD_LIBRARY_PATH=$TOOLCHAIN_DIR/usr/lib
export PATH=$TOOLCHAIN_DIR/bin:$PATH
export CC=$TOOLCHAIN_DIR/bin/mipsel-openwrt-linux-gcc
export AS=$TOOLCHAIN_DIR/bin/mipsel-openwrt-linux-as
export LD=$TOOLCHAIN_DIR/bin/mipsel-openwrt-linux-ld
./configure --host=mipsel-openwrt-linux CC=mipsel-openwrt-linux-gcc CXX=mipsel-openwrt-linux-g++ CFLAGS=-static CPPFLAGS=-static
make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment