[Rcpp-commits] r812 - pkg/RcppArmadillo

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Mar 1 16:11:43 CET 2010


Author: edd
Date: 2010-03-01 16:11:43 +0100 (Mon, 01 Mar 2010)
New Revision: 812

Modified:
   pkg/RcppArmadillo/configure
   pkg/RcppArmadillo/configure.in
Log:
configure also needs -lpthread (at least with arma 0.6.10 on Ubuntu)


Modified: pkg/RcppArmadillo/configure
===================================================================
--- pkg/RcppArmadillo/configure	2010-03-01 14:02:14 UTC (rev 811)
+++ pkg/RcppArmadillo/configure	2010-03-01 15:11:43 UTC (rev 812)
@@ -4233,7 +4233,7 @@
 
 ## second check the lib itself
 arma_savedlibs="$LIBS"
-LIBS="$LIBS -larmadillo"
+LIBS="$LIBS -larmadillo -lpthread"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF

Modified: pkg/RcppArmadillo/configure.in
===================================================================
--- pkg/RcppArmadillo/configure.in	2010-03-01 14:02:14 UTC (rev 811)
+++ pkg/RcppArmadillo/configure.in	2010-03-01 15:11:43 UTC (rev 812)
@@ -26,7 +26,7 @@
                 [AC_MSG_ERROR([ERROR: Armadillo headers required; use '-Iincludedir' in CXXFLAGS for unusual locations.])])
 ## second check the lib itself
 arma_savedlibs="$LIBS"
-LIBS="$LIBS -larmadillo"
+LIBS="$LIBS -larmadillo -lpthread"
 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <armadillo>]], 
 				[[arma::mat A = arma::eye<arma::mat>(5,5);]])],
 				[],



More information about the Rcpp-commits mailing list