From 4aa982d3e37096d537f6848b2c10da0fc46b83a1 Mon Sep 17 00:00:00 2001
From: Nehal J Wani <nehaljw.kkd1@gmail.com>
Date: Sat, 30 Dec 2017 10:31:40 -0800
Subject: [PATCH 2/8] OpenCV Libs: Specify explicitly

This will help avoid over linking libraries
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 951b29b..2d146ee 100644
--- a/Makefile
+++ b/Makefile
@@ -129,7 +129,7 @@ endif
 # setup opencv
 ifeq ($(USE_OPENCV), 1)
 	CFLAGS += -DMXNET_USE_OPENCV=1 $(shell pkg-config --cflags opencv)
-	LDFLAGS += $(filter-out -lopencv_ts, $(shell pkg-config --libs opencv))
+	LDFLAGS += -lopencv_core -lopencv_imgproc -lopencv_imgcodecs
 	BIN += bin/im2rec
 else
 	CFLAGS+= -DMXNET_USE_OPENCV=0
-- 
2.17.0

