mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-24 15:51:03 +02:00
termshark: do not strip debugging symbols while compiling
This commit is contained in:
parent
eb67e5f9a1
commit
3118751e0f
2 changed files with 4 additions and 4 deletions
|
|
@ -92,13 +92,13 @@ BDEPEND="dev-lang/go"
|
|||
src_compile() {
|
||||
GOPATH="${S}:$(get_golibdir_gopath)" \
|
||||
GOCACHE="${T}/go-cache" \
|
||||
go build -v -work -x -ldflags "-s -w -X ${EGO_PN}.Version=${PV}" ./... || die
|
||||
go build -v -work -x -ldflags "-w -X ${EGO_PN}.Version=${PV}" ./... || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
GOPATH="${S}:$(get_golibdir_gopath)" \
|
||||
GOCACHE="${T}/go-cache" \
|
||||
go install -v -work -x -ldflags "-s -w -X ${MY_EGO_PN}.Version=${PV}" ./... || die
|
||||
go install -v -work -x -ldflags "-w -X ${MY_EGO_PN}.Version=${PV}" ./... || die
|
||||
|
||||
dobin bin/${PN}
|
||||
dodoc "src/${EGO_PN}"/{README.md,docs/*}
|
||||
|
|
|
|||
|
|
@ -29,13 +29,13 @@ src_unpack() {
|
|||
src_compile() {
|
||||
GOPATH="${S}:${EGO_STORE_DIR}:$(get_golibdir_gopath)" \
|
||||
GOCACHE="${T}/go-cache" \
|
||||
go build -v -work -x -ldflags "-s -w -X ${MY_EGO_PN}.Version=${PV}" ./... || die
|
||||
go build -v -work -x -ldflags "-w -X ${MY_EGO_PN}.Version=${PV}" ./... || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
GOPATH="${S}:${EGO_STORE_DIR}:$(get_golibdir_gopath)" \
|
||||
GOCACHE="${T}/go-cache" \
|
||||
go install -v -work -x -ldflags "-s -w -X ${MY_EGO_PN}.Version=${PV}" ./... || die
|
||||
go install -v -work -x -ldflags "-w -X ${MY_EGO_PN}.Version=${PV}" ./... || die
|
||||
|
||||
dobin bin/${PN}
|
||||
dodoc src/"${MY_EGO_PN}"/{README.md,docs/*}
|
||||
|
|
|
|||
Loading…
Reference in a new issue