def METHOD_NAME(self):
    filter_file(r"^libs10=.*", "libs10=%s" % self.spec["blas"].libs.ld_flags, "configure")
    if "+openmp" in self.spec:
        config = ["CFLAGS=-O3 " + self.compiler.openmp_flag]
    else:
        config = ["CFLAGS=-O3"]
    if (
        self.spec.satisfies("^intel-mkl")
        or self.spec.satisfies("^intel-oneapi-mkl")
        or self.spec.satisfies("^intel-parallel-studio+mkl")
    ):
        config.append("LDFLAGS={0}".format(self.spec["blas"].libs.ld_flags))
    if "%aocc" in self.spec:
        amd_ldflags = " "
        if "%aocc@3:" in self.spec:
            amd_ldflags += "-lamdlibm -lm "
        if "%aocc@4:" in self.spec:
            amd_ldflags += "-lamdalloc "
        config.append("LDFLAGS=" + amd_ldflags)
    return config