]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: remove _FORTIFY_SOURCE define 65377/head
authorCasey Bodley <cbodley@redhat.com>
Wed, 3 Sep 2025 17:22:30 +0000 (13:22 -0400)
committerDavid Galloway <david.galloway@ibm.com>
Wed, 3 Sep 2025 23:12:50 +0000 (19:12 -0400)
commit662e4139863901166eaa224a44a4a3b4d64a2d12
treeb1a97da0483a6cf0dc423307bb6d83f51d0fb9cc
parent23277a496859733b54a352591b4271283067b8f0
cmake: remove _FORTIFY_SOURCE define

according to `dpkg-buildflags`, ubuntu 24 raised this value to
`-D_FORTIFY_SOURCE=3` which causes `error: "_FORTIFY_SOURCE" redefined`
compilation failures because Ceph itself adds `-D_FORTIFY_SOURCE=2`

`_FORTIFY_SOURCE` is a hardening option. both our rpm and debian builds
already specify that via environment variables, so Ceph's cmake should
leave it alone

Fixes: https://tracker.ceph.com/issues/72361
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 66bec97b0dc90b91f5be586351f52082beb6374a)
src/CMakeLists.txt