]> git.pld-linux.org Git - packages/gdal.git/blobdiff - gdal-armadillo.patch
- updated to 2.0.1
[packages/gdal.git] / gdal-armadillo.patch
index 3a0a20d8434c5dad2602258ce691fb022ddf7c17..6236e3ae086571d8eee5840ba1197405c58c89fe 100644 (file)
@@ -6,8 +6,7 @@ Kill warnings in Armadillo detection code to make compiler output empty
      rm -f testarmadillo
      echo '#include <armadillo>' > testarmadillo.cpp
 -    echo 'int main(int argc, char** argv) { arma::mat matInput(2,2); const arma::mat& matInv = arma::inv(matInput); return 0; } ' >> testarmadillo.cpp
--    if test -z "`${CXX} ${CPPFLAGS} testarmadillo.cpp -o testarmadillo -larmadillo ${LIBS} 2>&1`" ; then
 +    echo 'int main(int, char**) { arma::mat matInput(2,2); const arma::mat& matInv = arma::inv(matInput); (void)matInv; return 0; } ' >> testarmadillo.cpp
-+    if test -z "`${CXX} ${CPPFLAGS} testarmadillo.cpp -o testarmadillo -larmadillo 2>&1`" ; then
+     if test -z "`${CXX} ${CPPFLAGS} testarmadillo.cpp -o testarmadillo -larmadillo 2>&1`" ; then
          HAVE_ARMADILLO=yes
          LIBS="-larmadillo ${LIBS}"
This page took 0.026069 seconds and 4 git commands to generate.