diff --git a/chroot_version_hooks.d/13_enable_gold b/chroot_version_hooks.d/13_enable_gold new file mode 100755 index 0000000000..03c2f55b6e --- /dev/null +++ b/chroot_version_hooks.d/13_enable_gold @@ -0,0 +1,10 @@ +# Copyright (c) 2011 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +for toolchain in i686-pc-linux-gnu x86_64-cros-linux-gnu; do + if label=$(binutils-config -c $toolchain); then + sudo binutils-config ${label%-gold}-gold + fi +done +exit 0