old_contents: LIB_LINKOPTS = ["-lpthread"]
  
  BIN_LINKOPTS = ["-lpthread"]
  
new_contents: config_setting(
      name = "android",
      values = {
          "crosstool_top": "//external:android/crosstool",
      },
  )
  
  # Android builds do not need to link in a separate pthread library.
  LIB_LINKOPTS = select({
      ":android": [],
      "//conditions:default": ["-lpthread"],
  })
  
  BIN_LINKOPTS = select({
      ":android": [],
      "//conditions:default": ["-lpthread"],
  })
  
subject: Allow gemmlowp to be depended on as a dep on Android.