Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

meta: introduce default GOFLAGS definition #128

Merged
merged 4 commits into from
May 15, 2022
Merged

Conversation

CamberLoid
Copy link
Contributor

@CamberLoid CamberLoid commented May 13, 2022

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

- 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
@CamberLoid CamberLoid changed the title mete: introduce default GOFLAGS definition meta: introduce default GOFLAGS definition May 13, 2022
- etc/autobuild/ab3_defcfg.sh: add comment to marking its reference
- arch/(multiple arches): disable PIE for other retro architectures
This will fix an issue where one GOFLAG is not applied.
@CamberLoid
Copy link
Contributor Author

CamberLoid commented May 15, 2022

image

LGTM on amd64
(replace a random package's prepare with echo "GOFLAGS= ${GOFLAGS}" and then Ctrl-C )

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant