]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
pybind: move linker flags out of "libraries"
authorKefu Chai <kchai@redhat.com>
Sun, 15 Mar 2020 02:47:44 +0000 (10:47 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 15 Mar 2020 02:56:10 +0000 (10:56 +0800)
commit051fa3d9b533d1323dab03b7d989c732e0875e3f
treee9a98c7abb1b16337141b37cb3f4bee18c205d77
parente5cc8c2e1aa98967db84ce90eeba4269e4dd635c
pybind: move linker flags out of "libraries"

sometimes, `distutils.sysconfig.get_config_vars('LIBS')` returns flags
not starting with `-l`, and hence we should not allow
`setuptools.extension.Extension` to rebuild the `-l` options from those
flags, otherwise the linker just fails as the `-l-flags_for_linker` will
be passed to the linker.

in this change, those linker flags are passed directly to linker.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/cephfs/setup.py
src/pybind/rados/setup.py
src/pybind/rbd/setup.py
src/pybind/rgw/setup.py