blob: c2691739c329af20064527cbd6030678802c26e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
diff -ura openvpn-auth-oauth2-1.22.7/Makefile openvpn-auth-oauth2-1.22.7.new/Makefile
--- openvpn-auth-oauth2-1.22.7/Makefile 2025-02-13 04:01:47.000000000 +0800
+++ openvpn-auth-oauth2-1.22.7.new/Makefile 2025-02-22 00:46:53.613985991 +0800
@@ -54,7 +54,14 @@
build: clean $(PROJECT_NAME)
$(PROJECT_NAME):
- @go build -o $(PROJECT_NAME)$(EXT) .
+ go build \
+ -trimpath \
+ -buildmode=pie \
+ -mod=readonly \
+ -modcacherw \
+ -ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
+ -o $(PROJECT_NAME)$(EXT) \
+ .
.PHONY: test
test: ## Test the project
|