From f3db409103e97fbae2dcc9a37de3a28562273e8c Mon Sep 17 00:00:00 2001 From: Alexander Leitner Date: Tue, 13 Aug 2019 08:24:31 -0400 Subject: [PATCH] lib/uplinkc: make .so smaller by removing symbol information (#2730) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ce6c40404..4e569e397 100644 --- a/Makefile +++ b/Makefile @@ -246,7 +246,7 @@ binaries: ${BINARIES} ## Build bootstrap, certificates, gateway, identity, inspe .PHONY: libuplink libuplink: - go build -buildmode c-shared -o uplink.so storj.io/storj/lib/uplinkc + go build -ldflags="-s -w" -buildmode c-shared -o uplink.so storj.io/storj/lib/uplinkc cp lib/uplinkc/uplink_definitions.h uplink_definitions.h ##@ Deploy