szha commented on a change in pull request #17448: cmake: staticbuild for
binary distribution
URL: https://github.com/apache/incubator-mxnet/pull/17448#discussion_r376051723
##########
File path: tools/dependencies/openblas.sh
##########
@@ -33,12 +34,24 @@ if [[ ! -e $DEPS_PATH/lib/libopenblas.a ]]; then
# Adding NO_DYNAMIC=1 flag causes make install to fail
$MAKE DYNAMIC_ARCH=1 USE_OPENMP=1
+
+ if [[ -v CMAKE_STATICBUILD ]]; then
+ # We link and redistribute libopenblas.so for cmake staticbuild
+ # cf https://gitlab.kitware.com/cmake/cmake/issues/16221#note_143330
+ patchelf --set-rpath '$ORIGIN' --force-rpath libopenblas.so
Review comment:
why not link with the static library?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services