Filter flags taken from LDFLAGS into CGO_LDFLAGS
Make sure we take only flags compatible with cgo. Solves: https://github.com/cli/cli/issues/2577
This commit is contained in:
parent
f4152454f2
commit
d7f68e9ee2
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
|
@ -13,7 +13,7 @@ CGO_CPPFLAGS ?= ${CPPFLAGS}
|
|||
export CGO_CPPFLAGS
|
||||
CGO_CFLAGS ?= ${CFLAGS}
|
||||
export CGO_CFLAGS
|
||||
CGO_LDFLAGS ?= ${LDFLAGS}
|
||||
CGO_LDFLAGS ?= $(filter -g -L% -l% -O%,${LDFLAGS})
|
||||
export CGO_LDFLAGS
|
||||
|
||||
GO_LDFLAGS := -X github.com/cli/cli/internal/build.Version=$(GH_VERSION) $(GO_LDFLAGS)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue