From dbc44c73d1fd04a107845c8a88707907b265e97c Mon Sep 17 00:00:00 2001 From: klzgrad Date: Fri, 20 May 2022 10:53:37 +0800 Subject: [PATCH] Update make-go-buildflags.sh --- src/make-go-buildflags.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/make-go-buildflags.sh b/src/make-go-buildflags.sh index 5dc288d3a9..26be406c7e 100755 --- a/src/make-go-buildflags.sh +++ b/src/make-go-buildflags.sh @@ -200,7 +200,7 @@ if [ "$target_cpu" = 'mipsel' -o "$target_cpu" = 'mips64el' ]; then elif [ "$target_cpu" = 'arm64' -a "$ARCH" = 'Windows' ]; then # CGO does not support PIE for windows/arm64. 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. buildmode_flag= fi