当前位置: 首页 > 工具软件 > Nghttp2 > 使用案例 >

nghttp2 交叉编译

席银龙
2023-12-01
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" 

转载于:https://www.cnblogs.com/smallredness/p/10840599.html

 类似资料: