]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
build: Allow use of Clang to build Python extensions under Fedora 28
authorAdam C. Emerson <aemerson@redhat.com>
Fri, 4 May 2018 05:31:57 +0000 (01:31 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Tue, 8 May 2018 17:57:58 +0000 (13:57 -0400)
commit5234c4e1118fae1db6934b33cd17683c313ee3f0
tree661b0c4b9858a05916e31982e054f7434ee8ffa5
parenteb5ca24f39025eae0525e5f0f9c8458f528bb46d
build: Allow use of Clang to build Python extensions under Fedora 28

Fedora builds Python with hardening flags that are unsupported by
Clang. Python insists on building extensions with all the flags it was
given, not just ones relevant to finding Python libraries and
includes.

Ended up monkey patching customize_compiler to pull out the offending
flags when Clang is in use.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/pybind/cephfs/setup.py
src/pybind/rados/setup.py
src/pybind/rbd/setup.py
src/pybind/rgw/setup.py