nghttp2 交叉编译

touch run.sh
chmod 755 run.sh
mkdir build
cd build
../run.sh

run.sh

#!/bin/bash
#cd build

../configure \
--host=aarch64-linux-android \
--build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` \
--disable-examples \
--disable-threads \
--prefix="/home/soft/nghttp2-1.38.0/build/prefix" \
CFLAGS="-fPIE -pie" \
CXXFLAGS="-fPIE -pie" \
OPENSSL_CFLAGS="-I/home/soft/openssl-1.1.1b/build/prefix/include" \
OPENSSL_LIBS="-L/home/soft/openssl-1.1.1b/build/prefix/lib" 
posted @ 2019-05-09 19:42  JohnRed  阅读(1007)  评论(0编辑  收藏  举报