message: Removes icf, as there's little gain is binary reduction and may affect portability.
diff: @@ -49,6 +49,9 @@ def tflite_linkopts_unstripped():
  Returns:
  a select object with proper linkopts
  """
  +
  + # In case you wonder why there's no --icf is because the gains were
  + # negligible, and created potential compatibility problems.
  return select({
  "//tensorflow:android": [
  "-Wl,--no-export-dynamic", # Only inc syms referenced by dynamic obj.
  @@ -56,13 +59,7 @@ def tflite_linkopts_unstripped():
  "-Wl,--gc-sections", # Eliminate unused code and data.
  "-Wl,--as-needed", # Don't link unused libs.
  ],
  - "//tensorflow:darwin": [],
  - "//tensorflow:ios": [],
  - "//tensorflow/contrib/lite:mips": [],
  - "//tensorflow/contrib/lite:mips64": [],
  - "//conditions:default": [
  - "-Wl,--icf=all", # Identical code folding.
  - ],
  + "//conditions:default": [],
  })
  def tflite_jni_linkopts_unstripped():
  @@ -74,17 +71,15 @@ def tflite_jni_linkopts_unstripped():
  Returns:
  a select object with proper linkopts
  """
  +
  + # In case you wonder why there's no --icf is because the gains were
  + # negligible, and created potential compatibility problems.
  return select({
  "//tensorflow:android": [
  "-Wl,--gc-sections", # Eliminate unused code and data.
  "-Wl,--as-needed", # Don't link unused libs.
  ],
  - "//tensorflow:darwin": [],
  - "//tensorflow/contrib/lite:mips": [],
  - "//tensorflow/contrib/lite:mips64": [],
  - "//conditions:default": [
  - "-Wl,--icf=all", # Identical code folding.
  - ],
  + "//conditions:default": [],
  })
  def tflite_linkopts():
  