Skip to content

Commit

Permalink
Porting build scripts from 2.3
Browse files Browse the repository at this point in the history
Signed-off-by: Ji Bin <[email protected]>
  • Loading branch information
matrixji committed Nov 26, 2023
1 parent 3bd897b commit 9144c4f
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions milvus_binary/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ function build_linux_x86_64() {
cd milvus
# conan after 2.3
# pip3 install "conan<2.0"
export PATH=${HOME}/.local/bin:${PATH}
make -j $(nproc) milvus
cd bin
rm -fr lib*
Expand All @@ -120,17 +121,26 @@ function build_linux_x86_64() {
if test -f $p/$x && ! test -f $x ; then
file=$p/$x
while test -L $file ; do
file=$(dirname $file)/$(readlink $file)
filelink=$(readlink $file)
if [[ $filelink =~ ^/ ]] ; then
file=$filelink
else
file=$(dirname $file)/$filelink
fi
done
cp -frv $file $x
patchelf --remove-rpath $x
cp -frv $file $x.normal
echo remove rpath for $x}
patchelf --remove-rpath $x.normal
mv -fv $x.normal $x
strip $x
has_new_file=true
fi
done
fi
done
done
patchelf --remove-rpath milvus
strip milvus
}

function install_deps_for_macosx() {
Expand Down Expand Up @@ -202,6 +212,7 @@ function build_msys() {

cd bin
mv milvus milvus.exe
strip milvus.exe
rm -fr *.log *.dll

has_new_file=true
Expand All @@ -220,6 +231,7 @@ function build_msys() {
file=$(dirname $file)/$(readlink $file)
done
cp -frv $file $x
strip $x
has_new_file=true
fi
done
Expand Down

0 comments on commit 9144c4f

Please sign in to comment.