diff --git a/Makefile b/Makefile index 31722e86c085..cc101c3d931d 100644 --- a/Makefile +++ b/Makefile @@ -132,12 +132,7 @@ ifeq ($(USE_MKLDNN), 1) LDFLAGS += -L$(MKLROOT)/lib endif CFLAGS += -I$(MKLDNNROOT)/include - # MKLDNN but to needs to be dynamically linked for windows as not all VS compilers support static linking - ifneq ($(UNAME_S), Windows) - LIB_DEP += $(MKLDNNROOT)/lib/libmkldnn.a - else - LDFLAGS += -L$(MKLDNNROOT)/lib -lmkldnn -Wl,-rpath,'$${ORIGIN}' - endif + LIB_DEP += $(MKLDNNROOT)/lib/libmkldnn.a endif # setup opencv