In recent aosc-os-abbs topic Go-1.18-survey-20220401 , it is found that similar GOFLAGS is defined repeatably, making build script harder to read. This pull request attempt to resolve aforementioned issue and may make further packaging for go-based project easilier.
File changes:
etc/autobuild/ab3_defcfg.sh: set default GOFLAGS
arch/loongson3.sh: disable go's -buildmode=pie
build/15-gomod.sh: remove redundant check and codepath for loongson3
In recent aosc-os-abbs topic Go-1.18-survey-20220401 , it is found that similar GOFLAGS is defined repeatably, making build script harder to read. This pull request attempt to resolve aforementioned issue and may make further packaging for go-based project easilier.
File changes:
etc/autobuild/ab3_defcfg.sh
: set defaultGOFLAGS
arch/loongson3.sh
: disable go's-buildmode=pie
build/15-gomod.sh
: remove redundant check and codepath for loongson3