From 8612d25559f9802113d260a4b21ccb981f33dfaa Mon Sep 17 00:00:00 2001 From: Evan Su <48808396+HACKERALERT@users.noreply.github.com> Date: Sun, 25 Dec 2022 13:32:27 -0500 Subject: [PATCH] set CGO_ENABLED=1 --- src/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/README.md b/src/README.md index 92b7062..8e2d64e 100644 --- a/src/README.md +++ b/src/README.md @@ -14,7 +14,7 @@ brew install glfw glew **Windows:** A C compiler, ideally TDM-GCC or MinGW-w64 # 2. Install Go -If you don't have Go installed, download it from here or install it from your package manager (`apt install golang-go`). The latest version of Go is recommended, although you may fall back to Go 1.18 should any issues arise in the future. +If you don't have Go installed, download it from here or install it from your package manager (`apt install golang-go`). The latest version of Go is recommended, although you may fall back to Go 1.19 should any issues arise in the future. # 3. Get the Source Files Download the source files as a zip from the homepage or `git clone` this repository. Next, navigate to the `src/` directory, where you will find the source file (`Picocrypt.go`). You will need this file, along with `go.mod` and `go.sum`, to compile Picocrypt. @@ -25,6 +25,8 @@ Finally, build Picocrypt from source: - macOS: go build -ldflags="-s -w" Picocrypt.go - Linux: go build -ldflags="-s -w" Picocrypt.go +Note: Make sure to set `CGO_ENABLED=1` if it isn't already. + # 5. Done! You should now see a compiled executable (`Picocrypt.exe`/`Picocrypt`) in your directory. You can run it by double-clicking or executing it in your terminal. That wasn't too hard, right? Enjoy!