def __configure(self):
        """Setup configure options based on user parameters"""

        # Create a copy of the toolchain so that it can be modified
        # without impacting the original.
        self.__toolchain = _copy(self.__toolchain)

        # See https://cgns.github.io/download.html, Known Bugs
        if not self.__toolchain.LIBS:
            self.__toolchain.LIBS = '-Wl,--no-as-needed -ldl'
        if not self.__toolchain.FLIBS:
            self.__toolchain.FLIBS = '-Wl,--no-as-needed -ldl'
        # See https://cgnsorg.atlassian.net/browse/CGNS-40
        if (not self.__toolchain.FFLAGS and self.__toolchain.FC and
            re.match('.*pgf.*', self.__toolchain.FC)):
            self.__toolchain.FFLAGS = '-Mx,125,0x200'
Setup configure options based on user parameters
hpccm/building_blocks/cgns.py