mirror of
https://github.com/openlibrecommunity/olcrtc.git
synced 2026-05-26 07:08:11 +00:00
chore(magefile): add android-specific linker flag configuration
This commit is contained in:
@@ -129,9 +129,14 @@ func buildBinary(name, pkg, os_, arch string) error {
|
||||
"CGO_ENABLED": "0",
|
||||
}
|
||||
|
||||
flags := ldflags
|
||||
if os_ == "android" {
|
||||
flags += " -checklinkname=0"
|
||||
}
|
||||
|
||||
return sh.RunWithV(env, goexe, "build",
|
||||
"-trimpath",
|
||||
"-ldflags", ldflags,
|
||||
"-ldflags", flags,
|
||||
"-o", out,
|
||||
pkg,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user