]> 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)
committerKefu Chai <kchai@redhat.com>
Wed, 11 Mar 2020 14:43:08 +0000 (22:43 +0800)
to make sure the dummy cythonized python binding is able to find the dummy C binding.

Signed-off-by: Kefu Chai <kchai@redhat.com>
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