27 lines
773 B
Diff
27 lines
773 B
Diff
From ff28813d5ea9964cfd4efb6139e393be0362240e Mon Sep 17 00:00:00 2001
|
|
From: leeffo <liweiganga@uniontech.com>
|
|
Date: Mon, 31 Jul 2023 11:45:32 +0800
|
|
Subject: [PATCH] Remove all symbol table and relocation information from the
|
|
executable
|
|
|
|
---
|
|
Makefile | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/Makefile b/Makefile
|
|
index 1b2c4b7..57b2146 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -5,7 +5,7 @@ GOSITE_DIR = ${PREFIX}/share/gocode
|
|
libdir = /lib
|
|
SYSTEMD_LIB_DIR = ${libdir}
|
|
SYSTEMD_SERVICE_DIR = ${SYSTEMD_LIB_DIR}/systemd/system/
|
|
-GOBUILD = env GOPATH="${CURDIR}/${GOBUILD_DIR}:${GOPATH}" go build
|
|
+GOBUILD = env GOPATH="${CURDIR}/${GOBUILD_DIR}:${GOPATH}" go build -ldflags "-s" -buildmode=pie
|
|
export GO111MODULE=off
|
|
|
|
LIBRARIES = \
|
|
--
|
|
2.20.1
|
|
|