]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: add ${CMAKE_SHARED_LINKER_FLAGS} to LDFLAGS when building python extensions
authorKefu Chai <tchaikov@gmail.com>
Sun, 17 Mar 2024 15:40:27 +0000 (23:40 +0800)
committerKefu Chai <tchaikov@gmail.com>
Tue, 26 Mar 2024 23:35:28 +0000 (07:35 +0800)
commitd22734f6cb0e11dff0d94d212f47867fe06ab0fd
tree6c2d16f0d0661995641f482055f5ff3661cb88de
parent0dc61a4be335073e9a3047cf52ec3d12e4244f4d
cmake: add ${CMAKE_SHARED_LINKER_FLAGS} to LDFLAGS when building python extensions

if sanitizers are enabled, we have to populate the required link flags
to python extensions's building workflow. otherwise ld would fail to
link like:
```
/usr/bin/ld: /home/jenkins-build/build/workspace/ceph-pull-requests/build/lib/libceph-common.so.2: undefined reference to `__asan_stack_free_10'
```

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
cmake/modules/Distutils.cmake