def METHOD_NAME(self, env):
    if "%apple-clang" in self.spec:
        env.append_flags("CFLAGS", "-mmacosx-version-min=10.13")
        env.append_flags("CXXFLAGS", "-mmacosx-version-min=10.13")
        env.append_flags("LDFLAGS", "-mmacosx-version-min=10.13")
    elif self.spec.compiler.name in ("gcc", "clang") and "+static_libstdcpp" in self.spec:
        env.append_flags("LDFLAGS", "-static-libstdc++ -static-libgcc -Wl,--exclude-libs,ALL")