开源库编译, 例如valgrind
#VALGRIND 死机分析编译
#下载
https://valgrind.org/downloads/current.html
export PATH="/opt/ali-linux/mips-mti-linux-gnu-2017.10-05/usr/bin:$PATH"
./configure --host=mips-mti-linux-gnu --prefix=/mnt/usb/sda1/trgapp/out CFLAGS="-EL" LDFLAGS="-EL"
export VALGRIND_LIB=/mnt/usb/sda1/output/libexec/valgrind
../../output/bin/valgrind --tool=memcheck --leak-check=full ./trgapp
CFLAGS="-EL" LDFLAGS="-EL" : 指定编译为 小端
--host : 编译的平台
prefix: 安装到平台的路径
export VALGRIND_LIB=/mnt/usb/sda1/output/libexec/valgrind
valgrind 需要设置环境变量到libexec/valgrind才能执行
#DLNA upnp编译选项
./configure --prefix=/home/savedirectory --disable-samples --disable-blocking_tcp_connections --host=arm-histbv400-linux