From e2e33f1b178ddbcc75b27bb961f509725ade374a Mon Sep 17 00:00:00 2001 From: Sonny Rao Date: Wed, 12 Oct 2011 17:52:32 -0700 Subject: [PATCH] Add a migration script to enable the gold linker on x86 and amd64 BUG=chromium-os:21619 TEST=run build_packages on x86-generic and amd64-generic and ensure gold linker is enabled via "binutils-config -l" Change-Id: I7026fad808587a5d6158421c3dac9d18b7141242 Reviewed-on: http://gerrit.chromium.org/gerrit/9996 Reviewed-by: Raymes Khoury Tested-by: Sonny Rao Reviewed-by: David James Reviewed-by: Zdenek Behan Commit-Ready: Sonny Rao --- chroot_version_hooks.d/13_enable_gold | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 chroot_version_hooks.d/13_enable_gold 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