mirror of
https://github.com/containers/skopeo.git
synced 2025-08-30 03:52:47 +00:00
-buildmode=pie is not supported for some arch
Signed-off-by: Xiaodong Liu <liuxiaodong@loongson.cn>
This commit is contained in:
parent
ea10e61f7d
commit
e5f549099b
9
Makefile
9
Makefile
@ -25,6 +25,9 @@ BASHINSTALLDIR=${PREFIX}/share/bash-completion/completions
|
|||||||
|
|
||||||
GO ?= go
|
GO ?= go
|
||||||
GOBIN := $(shell $(GO) env GOBIN)
|
GOBIN := $(shell $(GO) env GOBIN)
|
||||||
|
GOOS ?= $(shell go env GOOS)
|
||||||
|
GOARCH ?= $(shell go env GOARCH)
|
||||||
|
|
||||||
ifeq ($(GOBIN),)
|
ifeq ($(GOBIN),)
|
||||||
GOBIN := $(GOPATH)/bin
|
GOBIN := $(GOPATH)/bin
|
||||||
endif
|
endif
|
||||||
@ -43,8 +46,10 @@ ifeq ($(DEBUG), 1)
|
|||||||
override GOGCFLAGS += -N -l
|
override GOGCFLAGS += -N -l
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(shell $(GO) env GOOS), linux)
|
ifeq ($(GOOS), linux)
|
||||||
GO_DYN_FLAGS="-buildmode=pie"
|
ifneq ($(GOARCH),$(filter $(GOARCH),mips mipsle mips64 mips64le ppc64 riscv64))
|
||||||
|
GO_DYN_FLAGS="-buildmode=pie"
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD 2>/dev/null)
|
GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD 2>/dev/null)
|
||||||
|
Loading…
Reference in New Issue
Block a user