[修改] 新增NDK配置autoconf, build脚本
This commit is contained in:
34
libtirpc-1.3.1/build.sh
Executable file
34
libtirpc-1.3.1/build.sh
Executable file
@ -0,0 +1,34 @@
|
||||
#!/bin/bash
|
||||
|
||||
LOCAL_DIR=`pwd`
|
||||
#----------------------------------
|
||||
OUTPUT_DIR=${LOCAL_DIR}/output
|
||||
INSTALL_DIR=${LOCAL_DIR}/install
|
||||
|
||||
NDK=${HOME}/Workspaces/ndk/android-ndk-r21e
|
||||
|
||||
# Only choose one of these, depending on your build machine...
|
||||
#export TOOLCHAIN=$NDK/toolchains/llvm/prebuilt/darwin-x86_64
|
||||
export TOOLCHAIN=$NDK/toolchains/llvm/prebuilt/linux-x86_64
|
||||
|
||||
# Only choose one of these, depending on your device...
|
||||
export TARGET=aarch64-linux-android
|
||||
#export TARGET=armv7a-linux-androideabi
|
||||
#export TARGET=i686-linux-android
|
||||
#export TARGET=x86_64-linux-android
|
||||
|
||||
# Set this to your minSdkVersion.
|
||||
export API=30
|
||||
|
||||
# Configure and build.
|
||||
export AR=$TOOLCHAIN/bin/llvm-ar
|
||||
export CC=$TOOLCHAIN/bin/$TARGET$API-clang
|
||||
export AS=$CC
|
||||
export CXX=$TOOLCHAIN/bin/$TARGET$API-clang++
|
||||
export LD=$TOOLCHAIN/bin/ld
|
||||
export RANLIB=$TOOLCHAIN/bin/llvm-ranlib
|
||||
export STRIP=$TOOLCHAIN/bin/llvm-strip
|
||||
|
||||
./configure --host=$TARGET --prefix=${PWD}/../_install --disable-static --disable-gssapi CFLAGS="-I../libtirpc-1.3.1/tirpc/rpc/"
|
||||
|
||||
make
|
||||
35
nfs-utils-2.5.2/build.sh
Executable file
35
nfs-utils-2.5.2/build.sh
Executable file
@ -0,0 +1,35 @@
|
||||
#!/bin/bash
|
||||
|
||||
LOCAL_DIR=`pwd`
|
||||
#----------------------------------
|
||||
OUTPUT_DIR=${LOCAL_DIR}/output
|
||||
INSTALL_DIR=${LOCAL_DIR}/install
|
||||
|
||||
NDK=${HOME}/Workspaces/ndk/android-ndk-r21e
|
||||
|
||||
# Only choose one of these, depending on your build machine...
|
||||
#export TOOLCHAIN=$NDK/toolchains/llvm/prebuilt/darwin-x86_64
|
||||
export TOOLCHAIN=$NDK/toolchains/llvm/prebuilt/linux-x86_64
|
||||
|
||||
# Only choose one of these, depending on your device...
|
||||
export TARGET=aarch64-linux-android
|
||||
#export TARGET=armv7a-linux-androideabi
|
||||
#export TARGET=i686-linux-android
|
||||
#export TARGET=x86_64-linux-android
|
||||
|
||||
# Set this to your minSdkVersion.
|
||||
export API=30
|
||||
|
||||
# Configure and build.
|
||||
export AR=$TOOLCHAIN/bin/llvm-ar
|
||||
export CC=$TOOLCHAIN/bin/$TARGET$API-clang
|
||||
export AS=$CC
|
||||
export CXX=$TOOLCHAIN/bin/$TARGET$API-clang++
|
||||
export LD=$TOOLCHAIN/bin/ld
|
||||
export RANLIB=$TOOLCHAIN/bin/llvm-ranlib
|
||||
export STRIP=$TOOLCHAIN/bin/llvm-strip
|
||||
|
||||
./configure --host=$TARGET --prefix=${INSTALL_DIR} \
|
||||
--disable-ipv6 --disable-tirpc --disable-nfsv4 --disable-gss --disable-uuid --disable-mount;
|
||||
|
||||
make
|
||||
Reference in New Issue
Block a user