windows build instructions
This commit is contained in:
15
build-windows.sh
Normal file
15
build-windows.sh
Normal file
@ -0,0 +1,15 @@
|
||||
#
|
||||
# Crosscompiling to windows
|
||||
#
|
||||
# install mingw
|
||||
# $ sudo apt-get install mingw-w64 mingw-w64-tools
|
||||
#
|
||||
# locate mingw linkers SEARCH_DIR
|
||||
# $ x86_64-w64-mingw32-ld --verbose | grep SEARCH_DIR
|
||||
#
|
||||
# create there a symlink to BearLibTerminal.dll
|
||||
# $ cd /path/to/mingw32/dlls && sudo ln -s /path/to/BearLibTerminal.dll .
|
||||
|
||||
|
||||
# the build command
|
||||
GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ go build -o alchemyst.exe
|
Reference in New Issue
Block a user