change -lpthread to -pthread in linking
authorDmytro Mishkin <ducha.aiki@gmail.com>
Mon, 6 Oct 2014 07:32:47 +0000 (10:32 +0300)
committerDmytro Mishkin <ducha.aiki@gmail.com>
Mon, 6 Oct 2014 07:32:47 +0000 (10:32 +0300)
Compilation flags is already there

Makefile

index 929f8d5..f49ea56 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -169,7 +169,7 @@ LIBRARIES += glog gflags protobuf leveldb snappy \
        lmdb \
        boost_system \
        hdf5_hl hdf5 \
-       opencv_core opencv_highgui opencv_imgproc pthread
+       opencv_core opencv_highgui opencv_imgproc
 PYTHON_LIBRARIES := boost_python python2.7
 WARNINGS := -Wall -Wno-sign-compare
 
@@ -314,7 +314,7 @@ CXXFLAGS += -pthread -fPIC $(COMMON_FLAGS) $(WARNINGS)
 NVCCFLAGS += -ccbin=$(CXX) -Xcompiler -fPIC $(COMMON_FLAGS)
 # mex may invoke an older gcc that is too liberal with -Wuninitalized
 MATLAB_CXXFLAGS := $(CXXFLAGS) -Wno-uninitialized
-LINKFLAGS += -fPIC $(COMMON_FLAGS) $(WARNINGS)
+LINKFLAGS += -pthread -fPIC $(COMMON_FLAGS) $(WARNINGS)
 LDFLAGS += $(foreach librarydir,$(LIBRARY_DIRS),-L$(librarydir)) \
                $(foreach library,$(LIBRARIES),-l$(library))
 PYTHON_LDFLAGS := $(LDFLAGS) $(foreach library,$(PYTHON_LIBRARIES),-l$(library))