barry-jin commented on a change in pull request #19685:
URL: https://github.com/apache/incubator-mxnet/pull/19685#discussion_r562255616
##########
File path: python/setup.py
##########
@@ -81,7 +81,7 @@ def config_cython():
libraries = ['mxnet']
# Default paths to libmxnet.so relative to the shared library file
generated by cython.
# These precede LD_LIBRARY_PATH.
- extra_link_args =
["-Wl,-rpath=$ORIGIN/..:$ORIGIN/../../../lib:$ORIGIN/../../../build"]
+ extra_link_args =
["-Wl,-rpath,$ORIGIN/..:$ORIGIN/../../../lib:$ORIGIN/../../../build"]
Review comment:
There will be error when build with cython on MacOS
```
$ cd python
$ python3 setup.py build_ext --inplace --with-cython
...
ld: unknown option:
-rpath=$ORIGIN/..:$ORIGIN/../../../lib:$ORIGIN/../../../build
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
error: command 'clang++' failed with exit status 1
```
----------------------------------------------------------------
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]