linux/client: Build non-debug things with visibility=hidden for x64

This commit is contained in:
Oleksii Shevchuk 2019-04-29 21:33:51 +03:00
parent 35e707f4eb
commit d9e535fbb7
1 changed files with 4 additions and 0 deletions

View File

@ -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