1"""Loads the GFlags repo and patch it with android linkopt fix."""
2
3load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
4
5def repo():
6    http_archive(
7        name = "com_github_gflags_gflags",
8        sha256 = "ae27cdbcd6a2f935baa78e4f21f675649271634c092b1be01469440495609d0e",
9        strip_prefix = "gflags-2.2.1",
10        urls = [
11            "http://mirror.tensorflow.org/github.com/gflags/gflags/archive/v2.2.1.tar.gz",
12            "https://github.com/gflags/gflags/archive/v2.2.1.tar.gz",
13        ],
14        patches = ["@//third_party/gflags:fix_android_pthread_link.patch"],
15        patch_args = ["-p1"],
16    )
17