Skip to content

Commit

Permalink
Set soname for Android library
Browse files Browse the repository at this point in the history
  • Loading branch information
nshmyrev committed Jan 21, 2022
1 parent 2135223 commit a490f35
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions android/lib/build-vosk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ case $arch in
esac

mkdir -p $WORKDIR/local/lib

# openblas first
cd $WORKDIR
git clone -b v0.3.13 --single-branch https://github.com/xianyi/OpenBLAS
Expand Down Expand Up @@ -123,7 +122,7 @@ make -j 8 online2 lm rnnlm
# Vosk-api
cd $WORKDIR
mkdir -p $WORKDIR/vosk
make -j 8 -C ${WORKDIR_BASE}/../../../src OUTDIR=$WORKDIR/vosk KALDI_ROOT=${WORKDIR}/kaldi OPENFST_ROOT=${WORKDIR}/local OPENBLAS_ROOT=${WORKDIR}/local CXX=$CXX EXTRA_LDFLAGS="-llog -static-libstdc++"
make -j 8 -C ${WORKDIR_BASE}/../../../src OUTDIR=$WORKDIR/vosk KALDI_ROOT=${WORKDIR}/kaldi OPENFST_ROOT=${WORKDIR}/local OPENBLAS_ROOT=${WORKDIR}/local CXX=$CXX EXTRA_LDFLAGS="-llog -static-libstdc++ -Wl,-soname,libvosk.so"
cp $WORKDIR/vosk/libvosk.so $WORKDIR/../../src/main/jniLibs/$arch/libvosk.so

done

0 comments on commit a490f35

Please sign in to comment.