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" 

猜你喜欢

转载自www.cnblogs.com/smallredness/p/10840599.html
今日推荐