]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: add -fstack-protector-strong on win32 48259/head
authorKen Dreyer <kdreyer@redhat.com>
Tue, 13 Sep 2022 20:18:36 +0000 (16:18 -0400)
committerKen Dreyer <kdreyer@redhat.com>
Tue, 27 Sep 2022 15:21:18 +0000 (11:21 -0400)
commitc7838a6dd11d37bef646cd93d3ffaf11a9a9c176
tree95c0068a25c4263e7dac063d7422ef4efb48d7cb
parent3eea1e1750fe163790416ca3f186def2087a1035
cmake: add -fstack-protector-strong on win32

mingw on RHEL 9 needs -fstack-protector (which adds -lssp), or it fails
with these errors:

  undefined reference to `__stack_chk_fail'
  undefined reference to `__stack_chk_guard'
  undefined reference to `__strcpy_chk'

Commit 8d35b2eceabafbe13458101f8701e3fc49f15d63 mentions that the build
fails with -fstack-protector-strong. Perhaps that only applied to
earlier Ubuntu versions, because Ubuntu Focal can build with
-fstack-protector-strong now.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
src/CMakeLists.txt
win32_build.sh