--- tools/cpp/cc_configure.bzl.orig 1980-01-01 00:00:00.000000000 +0100 +++ tools/cpp/cc_configure.bzl 2017-06-26 07:12:14.596089126 +0200 @@ -274,7 +274,7 @@ ] if darwin else [ "-B" + str(repository_ctx.path(cc).dirname), # Always have -B/usr/bin, see https://github.com/bazelbuild/bazel/issues/760. - "-B/usr/bin", + "-B/apps/all/binutils/2.28-GCCcore-7.1.0/bin", # Gold linker only? Can we enable this by default? # "-Wl,--warn-execstack", # "-Wl,--detect-odr-violations" @@ -308,7 +308,7 @@ ] + (["-Wthread-safety", "-Wself-assign"] if darwin else [ "-B" + _escape_string(str(repository_ctx.path(cc).dirname)), # Always have -B/usr/bin, see https://github.com/bazelbuild/bazel/issues/760. - "-B/usr/bin", + "-B/apps/all/binutils/2.28-GCCcore-7.1.0/bin", ]) + ( # Disable problematic warnings. _add_option_if_supported(repository_ctx, cc, "-Wunused-but-set-parameter") +