Projects
Eulaceura:Mainline:GA
syscontainer-tools
_service:obs_scm:0003-enable-external-linkmode-...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0003-enable-external-linkmode-for-cgo-build.patch of Package syscontainer-tools
From df6545261395654bdba369e23b7b4fd6705cad93 Mon Sep 17 00:00:00 2001 From: zhangsong234 <zhangsong34@huawei.com> Date: Thu, 2 Sep 2021 20:49:07 +0800 Subject: [PATCH] enable external linkmode for cgo build Signed-off-by: zhangsong234 <zhangsong34@huawei.com> --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 792a861..5881aec 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ VERSION := $(shell cat ./VERSION) BEP_DIR=/tmp/syscontainer-tools-build-bep BEP_FLAGS=-tmpdir=/tmp/syscontainer-tools-build-bep -GO_LDFLAGS="-buildid=IdByiSula $(BEP_FLAGS) -extldflags=-static -extldflags=-Wl,-z,relro,-z,now -X main.gitCommit=${COMMIT} -X main.version=${VERSION}" +GO_LDFLAGS="-buildid=IdByiSula $(BEP_FLAGS) -linkmode=external -extldflags=-static -extldflags=-Wl,-z,relro,-z,now -X main.gitCommit=${COMMIT} -X main.version=${VERSION}" ENV = GOPATH=${GOPATH} \ CGO_ENABLED=1 \ -- 1.8.3.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2