[sympol] Eigen3 3.1.2 adds the need to link explicitly with -lpthread.

Jerry James jjames at fedoraproject.org
Wed Mar 6 15:53:34 UTC 2013


commit 13f64a6e7ebb8b37272c98542463fb3dc6439cbf
Author: Jerry James <jamesjer at betterlinux.com>
Date:   Wed Mar 6 08:53:24 2013 -0700

    Eigen3 3.1.2 adds the need to link explicitly with -lpthread.

 sympol.spec |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/sympol.spec b/sympol.spec
index 29e4aa2..b6243e4 100644
--- a/sympol.spec
+++ b/sympol.spec
@@ -59,6 +59,10 @@ sed -e "/(external/d" \
     -e "s|-O3 -g|-I%{_includedir}/cddlib -I%{_includedir}/lrslib -DBLISS_USE_GMP|" \
     -i CMakeLists.txt
 
+# Eigen3 3.1.2 adds the need to link explicitly with -lpthread
+sed -i 's/{Boost_LIBRARIES}/& pthread/' sympol/CMakeLists.txt
+sed -i 's/{GMP_LIBRARIES}/& pthread/' test/CMakeLists.txt
+
 %build
 export LDFLAGS="$RPM_LD_FLAGS -Wl,--as-needed"
 %cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo


More information about the scm-commits mailing list