-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't set custom CGO_CFLAGS and CGO_LDFLAGS with "fyne package" on darwin #3276
Comments
Hi, I use an build:
CGO_LDFLAGS="-H=windowsgui" \
go build -x -o $(EXE) . And then, I got an error: But If I put it in What's the difference between them? |
I think hiding windows is controlled by golang compiler, so if you want to hide gui, use -ldflags build: go build -ldflags -H=widnowsgui -x -o $(EXE) . |
Also the windows hiding issue is completely handled by |
Fixed on |
Checklist
Describe the bug
in Darwin, can't custom CGO_CFLAGS and CGO_LDFLAGS
go run
andgo build
works wellHow to reproduce
brew install ffmpeg --build-from-source
Screenshots
No response
Example code
https://github.com/zergon321/reisen
Fyne version
2.2.3
Go compiler version
1.19
Operating system
macOS
Operating system version
MacOSX Ventura 13.0
Additional Information
fyne/cmd/fyne/internal/commands/build.go
Line 197 in 638ae24
The text was updated successfully, but these errors were encountered: