We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3e95bc commit fc5ee6aCopy full SHA for fc5ee6a
Makefile
@@ -1,12 +1,14 @@
1
all: client server
2
3
+BUILD_FLAGS = -ldflags '-extldflags "-fno-PIC -static"' -buildmode pie -tags 'osusergo netgo static_build'
4
+
5
server:
6
mkdir -p bin
- cd cmds/server && go build && mv server ../../bin/trs
7
+ cd cmds/server && go build $(BUILD_FLAGS) -o ../../bin/trs
8
9
client:
10
- cd cmds/client && go build && mv client ../../bin/trc
11
+ cd cmds/client && go build $(BUILD_FLAGS) -o ../../bin/trc
12
13
runserver: server
14
sudo bin/trs -config router.toml
0 commit comments