Skip to content

Commit 0da9800

Browse files
committed
Copy all dynamic library files
1 parent 28da0a9 commit 0da9800

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packaging/debian_3rdparty/build_onnx.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ OS=$(uname -s)
2727
if [ "$OS" = "Darwin" ]; then
2828
DIR_OS="MacOS"
2929
CMAKE_EXTRA_DEFINES+=' CMAKE_OSX_ARCHITECTURES="arm64"'
30-
SUFFIX="${LIBONNXRUNTIME_VERSION}.dylib"
30+
SUFFIX="${LIBONNXRUNTIME_VERSION}.dylib*"
3131
else
3232
DIR_OS="Linux"
33-
SUFFIX="so.${LIBONNXRUNTIME_VERSION}"
33+
SUFFIX="so*"
3434
fi
3535

3636
CONFIG="Release"
@@ -49,7 +49,8 @@ mkdir -p "${PREFIX}"/lib/pkgconfig/
4949
mkdir -p "${PREFIX}"/include/onnxruntime/
5050

5151
cp build/$DIR_OS/$CONFIG/libonnxruntime.pc ${PREFIX}/lib/pkgconfig/
52-
cp build/$DIR_OS/$CONFIG/libonnxruntime.$SUFFIX ${PREFIX}/lib/
52+
cp -r build/$DIR_OS/$CONFIG/libonnxruntime.$SUFFIX ${PREFIX}/lib/
53+
5354
cp include/onnxruntime/core/session/onnxruntime_cxx_inline.h ${PREFIX}/include/onnxruntime/
5455
cp include/onnxruntime/core/session/onnxruntime_float16.h ${PREFIX}/include/onnxruntime/
5556
cp include/onnxruntime/core/session/onnxruntime_c_api.h ${PREFIX}/include/onnxruntime/

0 commit comments

Comments
 (0)