Update make-go-buildflags.sh

This commit is contained in:
klzgrad 2022-05-20 10:53:37 +08:00 committed by GitHub
parent 4e5adba4ba
commit dbc44c73d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -200,7 +200,7 @@ if [ "$target_cpu" = 'mipsel' -o "$target_cpu" = 'mips64el' ]; then
elif [ "$target_cpu" = 'arm64' -a "$ARCH" = 'Windows' ]; then elif [ "$target_cpu" = 'arm64' -a "$ARCH" = 'Windows' ]; then
# CGO does not support PIE for windows/arm64. # CGO does not support PIE for windows/arm64.
buildmode_flag= buildmode_flag=
elif [ "$target_cpu" = 'x86' -a "$target_os" != '' ]; then elif [ "$target_cpu" = 'x86' -a "$target_os" = '' ]; then
# Segfaults if built with PIE in regular Linux. TODO: Find out why. # Segfaults if built with PIE in regular Linux. TODO: Find out why.
buildmode_flag= buildmode_flag=
fi fi