Commit d33a81ab authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Fix unsafe expansions.

parent 7d9556a9
......@@ -39,13 +39,13 @@ n=${#netcdf_fortran_LIBS[@]}
for ((i=0 ; i < n; ++i)) do
case ${netcdf_fortran_LIBS[i]} in
-Wl,-Wl,,-rpath,,*)
netcdf_fortran_LIBS_FC+=${netcdf_fortran_LIBS[i]}
netcdf_fortran_LIBS_CC+=${netcdf_fortran_LIBS[i]/#-Wl,-Wl,,-rpath,,/-Wl,-rpath,}
unset netcdf_fortran_LIBS[$i]
netcdf_fortran_LIBS_FC+=("${netcdf_fortran_LIBS[i]}")
netcdf_fortran_LIBS_CC+=("${netcdf_fortran_LIBS[i]/#-Wl,-Wl,,-rpath,,/-Wl,-rpath,}")
unset "netcdf_fortran_LIBS[$i]"
;;
esac
done
cdi_LIBS="${netcdf_fortran_LIBS[@]} -leccodes -lssl -lcrypto"
cdi_LIBS="${netcdf_fortran_LIBS[*]} -leccodes -lssl -lcrypto"
FCFLAGS="-g -O2 -Wc=$(command -v gcc) -Wc,-pipe -Wl,-pipe -Wc,-march=core-avx2 -Wc,-mtune=core-avx2 -Wl,-Wl,,--as-needed $($nf_config --fflags)"
CFLAGS="-g -O2 -march=core-avx2 -mtune=core-avx2 -pipe -Wl,--as-needed"
cdi_FCFLAGS="${FCFLAGS} -Wl,-Wl,,-rpath,,${eccodes_root}/lib64 ${netcdf_fortran_LIBS_FC[*]}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment