gogio: add ldflags support for the macos build

Signed-off-by: Tobias Gesellchen <tobias@gesellix.de>
This commit is contained in:
Tobias Gesellchen
2023-06-28 19:01:08 +02:00
committed by Elias Naur
parent 0a86898b41
commit 940364d3e9
+1
View File
@@ -173,6 +173,7 @@ func (b *macBuilder) buildProgram(buildInfo *buildInfo, name string, arch string
cmd := exec.Command( cmd := exec.Command(
"go", "go",
"build", "build",
"-ldflags="+buildInfo.ldflags,
"-tags="+buildInfo.tags, "-tags="+buildInfo.tags,
"-o", filepath.Join(dest, "/Contents/MacOS/"+name), "-o", filepath.Join(dest, "/Contents/MacOS/"+name),
buildInfo.pkgPath, buildInfo.pkgPath,