From: Kefu Chai Date: Wed, 11 Mar 2020 14:39:59 +0000 (+0800) Subject: admin/build-doc: pass -rpath to linker X-Git-Tag: v15.2.9~122^2~44^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9dad7b814c186dda0f0e4fe0c8ac57233961aa6e;p=ceph.git admin/build-doc: pass -rpath to linker to make sure the dummy cythonized python binding is able to find the dummy C binding. Signed-off-by: Kefu Chai (cherry picked from commit 1183f267192681df2148d44e51ad56a531b5a45b) --- diff --git a/admin/build-doc b/admin/build-doc index 5a81dad2668..930e2768ee3 100755 --- a/admin/build-doc +++ b/admin/build-doc @@ -85,7 +85,7 @@ for bind in rados rbd cephfs rgw; do BUILD_DOC=1 \ CFLAGS="-iquote$TOPDIR/src/include" \ CPPFLAGS="-iquote$TOPDIR/src/include" \ - LDFLAGS="-L$vdir/lib -Wl,--no-as-needed" \ + LDFLAGS="-L$vdir/lib -Wl,--no-as-needed,-rpath=$vdir/lib" \ $vdir/bin/pip install --upgrade $TOPDIR/src/pybind/${bind} # rgwfile_version(), librgw_create(), rgw_mount() # since py3.5, distutils adds postfix in between ${bind} and so