def METHOD_NAME(self, name, flags):
    if name == "cflags":
        self.mycflags = flags
        if "+pic" in self.spec:
            flags.append(self.compiler.cc_pic_flag)
    return (flags, None, None)