@@ -46,7 +46,7 @@ case "${with_openblas}" in
4646 __INSTALL__)
4747 echo " ==================== Installing OpenBLAS ===================="
4848 pkg_install_dir=" ${INSTALLDIR} /openblas-${openblas_ver} "
49- install_lock_file=" $pkg_install_dir /install_successful"
49+ install_lock_file=" ${ pkg_install_dir} /install_successful"
5050 if verify_checksums " ${install_lock_file} " ; then
5151 echo " openblas-${openblas_ver} is already installed, skipping it."
5252 else
@@ -172,19 +172,10 @@ esac
172172if [ " $with_openblas " != " __DONTUSE__" ]; then
173173 if [ " $with_openblas " != " __SYSTEM__" ]; then
174174 cat << EOF > "${BUILDDIR} /setup_openblas"
175- prepend_path LD_LIBRARY_PATH "$pkg_install_dir /lib"
176- prepend_path LD_RUN_PATH "$pkg_install_dir /lib"
177- prepend_path LIBRARY_PATH "$pkg_install_dir /lib"
178- prepend_path PKG_CONFIG_PATH "$pkg_install_dir /lib/pkgconfig"
179- prepend_path CMAKE_PREFIX_PATH "$pkg_install_dir "
180- prepend_path CPATH "$pkg_install_dir /include"
181- export LD_LIBRARY_PATH="$pkg_install_dir /lib:"\$ {LD_LIBRARY_PATH}
182- export LD_RUN_PATH="$pkg_install_dir /lib:"\$ {LD_RUN_PATH}
183- export LIBRARY_PATH="$pkg_install_dir /lib:"\$ {LIBRARY_PATH}
184- export CPATH="$pkg_install_dir /include:"\$ {CPATH}
185- export PKG_CONFIG_PATH="$pkg_install_dir /lib/pkgconfig:"\$ {PKG_CONFIG_PATH}
186- export CMAKE_PREFIX_PATH="$pkg_install_dir :"\$ {CMAKE_PREFIX_PATH}
187- export OPENBLAS_ROOT=${pkg_install_dir}
175+ prepend_path LD_LIBRARY_PATH "${pkg_install_dir} /lib"
176+ prepend_path LD_RUN_PATH "${pkg_install_dir} /lib"
177+ prepend_path LIBRARY_PATH "${pkg_install_dir} /lib"
178+ prepend_path CPATH "${pkg_install_dir} /include"
188179EOF
189180 cat " ${BUILDDIR} /setup_openblas" >> $SETUPFILE
190181 fi
@@ -196,10 +187,8 @@ export OPENBLAS_LIBS="${OPENBLAS_LIBS}"
196187export MATH_CFLAGS="\$ {MATH_CFLAGS} ${OPENBLAS_CFLAGS} "
197188export MATH_LDFLAGS="\$ {MATH_LDFLAGS} ${OPENBLAS_LDFLAGS} "
198189export MATH_LIBS="\$ {MATH_LIBS} ${OPENBLAS_LIBS} "
199- export PKG_CONFIG_PATH="${pkg_install_dir} /lib/pkgconfig"
200- export CMAKE_PREFIX_PATH="${pkg_install_dir} "
201- prepend_path PKG_CONFIG_PATH "$pkg_install_dir /lib/pkgconfig"
202- prepend_path CMAKE_PREFIX_PATH "$pkg_install_dir "
190+ prepend_path PKG_CONFIG_PATH "${pkg_install_dir} /lib/pkgconfig"
191+ prepend_path CMAKE_PREFIX_PATH "${pkg_install_dir} "
203192EOF
204193fi
205194
0 commit comments