added LIBXC_VERSION to choose libxc version

This commit is contained in:
edoapra 2022-11-10 10:39:56 -08:00
parent e0ab9d8fbd
commit 6cf0983e14
No known key found for this signature in database
GPG key ID: 48E12DA1EDE9E1B0
2 changed files with 7 additions and 4 deletions

View file

@ -6,7 +6,7 @@
include ../../config/makefile.h
install/lib/libxc.a:
./build_libxc.sh
./build_libxc.sh LIBXC_VERSION
LIB_TARGETS += libxc

View file

@ -7,8 +7,11 @@ check_tgz() {
[ -f $1 ] && gunzip -t $1 > /dev/null && myexit=1
echo $myexit
}
VERSION=6.0.0
if [ $# -eq 0 ]; then
VERSION=6.0.0
else
VERSION=$1
fi
TGZ=libxc-${VERSION}.tar.gz
if [ `check_tgz $TGZ` == 1 ]; then
echo "using existing $TGZ"
@ -78,7 +81,7 @@ fi
cd libxc
# patch pk09 to avoid compiler memory problems
patch -p0 -N < ../pk09.patch
#patch -p0 -N < ../pk09.patch
mkdir -p build
cd build
if [[ -z "${NWCHEM_TOP}" ]]; then