From d9e535fbb7ff70996ba7ca14e4f8fa26112713d9 Mon Sep 17 00:00:00 2001 From: Oleksii Shevchuk Date: Mon, 29 Apr 2019 21:33:51 +0300 Subject: [PATCH] linux/client: Build non-debug things with visibility=hidden for x64 --- client/sources-linux/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/sources-linux/Makefile b/client/sources-linux/Makefile index cc0a4897..375bb3b8 100644 --- a/client/sources-linux/Makefile +++ b/client/sources-linux/Makefile @@ -31,6 +31,9 @@ endif ifeq ($(ARCH),64) NAME := 64 LDFLAGS += -m64 +ifeq ($(DEBUG),) +CFLAGS += -fvisibility=hidden +endif else NAME := 86 CFLAGS += -D_FILE_OFFSET_BITS=64 @@ -44,6 +47,7 @@ LINUX_INJECT_CFLAGS := -include fixes.h -include debug.h \ ifneq ($(DEBUG),) DEBUG_ADD := -debug CFLAGS += -DDEBUG -O0 -g +LDFLAGS += -g NAME := "$(NAME)d" else CFLAGS += -Os