#!/bin/bash
# This is just to get around a configure failure when trying to link to gdal.
if [[ ${target_platform} == osx-64 ]]; then
  export CXX="${CXX} --std=c++14"
elif [[ ${target_platform} =~ .*linux.* ]]; then
  # This is to keep configure happy when it compiles a test proj4 project. Urgh.
  export CPPFLAGS="${CPPFLAGS} -Wl,-rpath,${PREFIX}/lib"
fi
$R CMD INSTALL --build .
