dde-api/0002-Remove-all-symbol-table-and-relocation-information-f.patch
leeffo 5d4020e401 upgrade to version 5.5.32
(cherry picked from commit 72e08bee8ab77ef74765e48e29a5c87210edc36d)
2023-08-17 10:27:55 +08:00

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