]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
admin/build-doc: pass -rpath to linker
authorKefu Chai <kchai@redhat.com>
Wed, 11 Mar 2020 14:39:59 +0000 (22:39 +0800)
committerNathan Cutler <ncutler@suse.com>
Tue, 6 Oct 2020 09:41:11 +0000 (11:41 +0200)
to make sure the dummy cythonized python binding is able to find the dummy C binding.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 1183f267192681df2148d44e51ad56a531b5a45b)

admin/build-doc

index 5a81dad2668a6c37a7ffaf5bf4f63c817b87ddff..930e2768ee31d47abfab2992a4385a67ebeeed75 100755 (executable)
@@ -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