Support *FLAGS in deps resolution.