summaryrefslogtreecommitdiffstats
path: root/win32_build.sh
diff options
context:
space:
mode:
authorKen Dreyer <kdreyer@redhat.com>2022-09-13 22:18:36 +0200
committerKen Dreyer <kdreyer@redhat.com>2022-09-27 17:21:18 +0200
commitc7838a6dd11d37bef646cd93d3ffaf11a9a9c176 (patch)
tree95c0068a25c4263e7dac063d7422ef4efb48d7cb /win32_build.sh
parentcmake: set empty CMAKE_DL_LIBS on MinGW (diff)
downloadceph-c7838a6dd11d37bef646cd93d3ffaf11a9a9c176.tar.xz
ceph-c7838a6dd11d37bef646cd93d3ffaf11a9a9c176.zip
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>
Diffstat (limited to 'win32_build.sh')
-rwxr-xr-xwin32_build.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/win32_build.sh b/win32_build.sh
index d6fc366e4a9..2b84851ce8f 100755
--- a/win32_build.sh
+++ b/win32_build.sh
@@ -212,6 +212,7 @@ if [[ -z $SKIP_DLL_COPY ]]; then
$sslDir/bin/libssl-1_1-x64.dll
$mingwTargetLibDir/libstdc++-6.dll
$mingwTargetLibDir/libgcc_s_seh-1.dll
+ $mingwTargetLibDir/libssp*.dll
$mingwLibpthreadDir/libwinpthread-1.dll
$boostDir/lib/*.dll)
echo "Copying required dlls to $binDir."