Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
bitmask-vpn
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
75
Issues
75
List
Boards
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
leap
bitmask-vpn
Commits
7f304171
Unverified
Commit
7f304171
authored
Aug 07, 2019
by
Kali Kaneko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[feat] shrink binaries passing flags to linker
parent
5d992224
Pipeline
#26203
failed with stages
in 11 minutes and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
Makefile
Makefile
+1
-2
No files found.
Makefile
View file @
7f304171
...
...
@@ -47,8 +47,7 @@ get:
build
:
$(foreach path
,
$(wildcard cmd/*)
,
build_$(patsubst cmd/%
,
%
,
$(path)))
build_%
:
go build
-tags
$(TAGS)
-ldflags
"-X main.version=
`
git describe
--tags
`
"
-o
$*
./cmd/
$*
-
# doesn't work for cross compile: @strip $*
go build
-tags
$(TAGS)
-ldflags
"-s -w -X main.version=
`
git describe
--tags
`
"
-o
$*
./cmd/
$*
@
mkdir
-p
build/bin
@
mv
$*
build/bin/
-
@rm
-rf
build/
${PROVIDER}
/staging
&&
mkdir
-p
build/
${PROVIDER}
/staging
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment