@@ -86,6 +86,13 @@ case "$with_elpa" in
8686 # with long lines, and that a bunch of libs can be found
8787 cd elpa-${elpa_ver}
8888
89+ # Workaround for current ELPA version; note the situation might
90+ # change, so revise this patch carefully when version changes
91+ if [ " ${elpa_ver} " = " ${elpa_main_ver} " ]; then
92+ patch -l -p1 < " ${SCRIPT_DIR} /stage3/elpa-${elpa_ver} -library-only.patch" \
93+ > elpa_library_only.patch.log 2>&1 || tail -n ${LOG_LINES} elpa_library_only.patch.log
94+ fi
95+
8996 # ELPA-2017xxxx enables AVX2 by default, switch off if machine doesn't support it.
9097 AVX_flag=" "
9198 AVX512_flags=" "
@@ -127,6 +134,7 @@ case "$with_elpa" in
127134 --enable-openmp=${enable_openmp} \
128135 --enable-static=no \
129136 --enable-shared=yes \
137+ --with-test-programs=no \
130138 --disable-c-tests \
131139 --disable-cpp-tests \
132140 ${config_flags} \
@@ -159,6 +167,7 @@ case "$with_elpa" in
159167 --enable-openmp=${enable_openmp} \
160168 --enable-static=no \
161169 --enable-shared=yes \
170+ --with-test-programs=no \
162171 --disable-c-tests \
163172 --disable-cpp-tests \
164173 ${config_flags} \
@@ -191,6 +200,9 @@ case "$with_elpa" in
191200 cd ..
192201
193202 write_checksums " ${install_lock_file} " " ${SCRIPT_DIR} /stage3/$( basename ${SCRIPT_NAME} ) "
203+ if [ " ${elpa_ver} " = " ${elpa_main_ver} " ]; then
204+ write_checksums " ${SCRIPT_DIR} /stage3/elpa-${elpa_ver} -library-only.patch"
205+ fi
194206 fi
195207 [ " $enable_openmp " != " yes" ] && elpa_dir_openmp=" "
196208 elpa_include=" ${pkg_install_dir} /IF_CUDA(nvidia|cpu)/include/elpa${elpa_dir_openmp} -${elpa_ver} "
0 commit comments