config_compilers.xml
<?xml version="1.0" encoding="UTF-8"?>
<config_compilers version="2.0">
<!-- Comments below mostly indicate departures from the form of this file for the CESM GreatLakes install -->
<!-- The header of this file indicates that we should not use SLIBS here-->
<!-- https://github.com/E3SM-Project/E3SM/blob/e3d7f9bce027f99a021dedf15929d0dba1b8bacb/cime/config/e3sm/machines/config_compilers.xml -->
<!-- define LDFLAGS below instead -->
<!--
<compiler MACH="singularity_gl" COMPILER="gnu">
<HDF5_PATH> $ENV{HDF5_PATH}</HDF5_PATH>
<NETCDF_PATH> $ENV{NETCDF_PATH}</NETCDF_PATH>
<PNETCDF_PATH> $ENV{PNETCDF_PATH}</PNETCDF_PATH>
<SLIBS>
<append>$SHELL{$NETCDF_PATH/bin/nf-config --flibs} -lblas -llapack </append>
</SLIBS>
</compiler>
</config_compilers>