diff --git a/Makefile b/Makefile index 403bf0544ece..4529ecc05ee0 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ UNAME_S := $(shell uname -s) # The flags LLVM_CFLAGS= -fno-rtti -DDMLC_ENABLE_RTTI=0 -DDMLC_USE_FOPEN64=0 -LDFLAGS = -pthread -lm -ldl +LDFLAGS = -pthread -lm -ldl -Wl,-Bsymbolic-functions INCLUDE_FLAGS = -Iinclude -I$(DLPACK_PATH)/include -I$(DMLC_CORE_PATH)/include -IHalideIR/src -Itopi/include CFLAGS = -std=c++11 -Wall -O2 $(INCLUDE_FLAGS) -fPIC PKG_LDFLAGS =