BVLC/caffe — pull request #1179 by ducha-aiki (2014-09-29 13:12:42+00:00)
Title: [bug fix] Fix ptread linking order

Changed linking order: -pthread -> back.
Otherwise it throws an error:
/usr/bin/ld: /usr/local/lib/libgflags.a(gflags.cc.o): undefined reference to symbol 'pthread_rwlock_wrlock@@GLIBC_2.2.5'
/lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status