adding missing libraries - lm and lstdc++
authorYangqing Jia <jiayq84@gmail.com>
Sat, 11 Oct 2014 05:01:28 +0000 (05:01 +0000)
committerYangqing Jia <jiayq84@gmail.com>
Sat, 11 Oct 2014 05:01:28 +0000 (05:01 +0000)
Makefile

index 5fb597c..35c37af 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -168,9 +168,7 @@ ifneq ($(CPU_ONLY), 1)
        LIBRARIES := cudart cublas curand
 endif
 LIBRARIES += glog gflags protobuf leveldb snappy \
-       lmdb \
-       boost_system \
-       hdf5_hl hdf5 \
+       lmdb boost_system hdf5_hl hdf5 m \
        opencv_core opencv_highgui opencv_imgproc
 PYTHON_LIBRARIES := boost_python python2.7
 WARNINGS := -Wall -Wno-sign-compare
@@ -235,7 +233,8 @@ ifeq ($(LINUX), 1)
                WARNINGS += -Wno-uninitialized
        endif
        # boost::thread is reasonably called boost_thread (compare OS X)
-       LIBRARIES += boost_thread
+       # We will also explicitly add stdc++ to the link target.
+       LIBRARIES += boost_thread stdc++
 endif
 
 # OS X: