Skip to content

Commit b3c046e

Browse files
committed
fix linker script for windows console-less
1 parent 711f97c commit b3c046e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compile_webidebridge.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ compilePlatform()
6565
if [ $GOOS == "windows" ]
6666
then
6767
NAME=$NAME".exe"
68-
EXTRAFLAGS="-ldflags -Hwindowsgui"
68+
EXTRAFLAGS="-ldflags -H=windowsgui"
6969
fi
70-
env GOOS=$GOOS GOARCH=$GOARCH CC=$CC CXX=$CC CGO_ENABLED=$CGO_ENABLED go build -o=$NAME $EXTRAFLASG
70+
env GOOS=$GOOS GOARCH=$GOARCH CC=$CC CXX=$CC CGO_ENABLED=$CGO_ENABLED go build -o=$NAME $EXTRAFLAGS
7171
if [ $? != 0 ]
7272
then
7373
echo -e "${red}Target $GOOS, $GOARCH failed${NC}"

0 commit comments

Comments
 (0)