Skip to content

Commit 29436fa

Browse files
authored
Merge pull request #1194 from dolthub/fulghum/build_binaries
Fix SSP linker errors for Windows build
2 parents cbaf318 + 923acb1 commit 29436fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/build_binaries.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ platform_cgo_ldflags["linux-arm64"]="-static -s"
4949
platform_cgo_ldflags["linux-amd64"]="-static -s"
5050
platform_cgo_ldflags["darwin-arm64"]=""
5151
platform_cgo_ldflags["darwin-amd64"]=""
52-
platform_cgo_ldflags["windows-amd64"]=""
52+
# Stack smash protection lib is built into clang for unix platforms,
53+
# but on Windows we need to pull in the separate ssp library
54+
platform_cgo_ldflags["windows-amd64"]="-lssp"
5355
5456
for tuple in $OS_ARCH_TUPLES; do
5557
os=`echo $tuple | sed 's/-.*//'`

0 commit comments

Comments
 (0)