X-Git-Url: http://git.pld-linux.org/?p=packages%2Fgdal.git;a=blobdiff_plain;f=gdal-armadillo.patch;h=6236e3ae086571d8eee5840ba1197405c58c89fe;hp=3a0a20d8434c5dad2602258ce691fb022ddf7c17;hb=bfc9582643ecb091c6fa4dd4264d7496ddc6da61;hpb=779b0eecf7b016e2b67320fdcf156ad4365ee96b diff --git a/gdal-armadillo.patch b/gdal-armadillo.patch index 3a0a20d..6236e3a 100644 --- a/gdal-armadillo.patch +++ b/gdal-armadillo.patch @@ -6,8 +6,7 @@ Kill warnings in Armadillo detection code to make compiler output empty rm -f testarmadillo echo '#include ' > 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}"