1include $(SRC_PATH)build/arch.mk 2SHAREDLIBSUFFIX = so 3SHAREDLIBSUFFIXFULLVER=$(SHAREDLIBSUFFIX).$(FULL_VERSION) 4SHAREDLIBSUFFIXMAJORVER=$(SHAREDLIBSUFFIX).$(SHAREDLIB_MAJORVERSION) 5SHLDFLAGS = -Wl,-soname,$(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIXMAJORVER) 6CFLAGS += -fPIC 7ifeq ($(USE_STACK_PROTECTOR), Yes) 8CFLAGS += -fstack-protector-all 9endif 10LDFLAGS += -lpthread 11STATIC_LDFLAGS += -lpthread -lm 12ifeq ($(ASM_ARCH), x86) 13ifeq ($(ARCH), x86_64) 14ASMFLAGS += -f elf64 15else 16ASMFLAGS += -f elf 17endif 18endif 19 20