From a344105bb267efe3e15db25d84a3b4b6dc5469b4 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Tue, 6 Feb 2018 01:42:43 +0200 Subject: [PATCH] Some linux speciffic options to the build system. --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 98cd4160..f62f830a 100644 --- a/Makefile +++ b/Makefile @@ -92,7 +92,9 @@ endif ifeq ($(SQ_PLAT),win) SQ_DYNAMIC_LINKER_OPTIONS += -Wl,--dll else - SQ_DYNAMIC_LINKER_OPTIONS += + SQ_DEFINES += -DLINUX + SQ_C_OPTIONS += -fPIC + SQ_DYNAMIC_LINKER_OPTIONS += -Wl,-Bsymbolic endif ifeq ($(SQ_ARCH),64) @@ -105,7 +107,9 @@ else endif ifdef STANDALONE - SQ_DYNAMIC_LINKER_OPTIONS_ += -static + SQ_DYNAMIC_LINKER_OPTIONS_ += -static +else + SQ_DYNAMIC_LINKER_OPTIONS_ += -Bstatic endif SQ_DEFINES += -DSCRAT_USE_EXCEPTION -DSCRAT_USE_CXX11_OPTIMIZATIONS