mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 22:21:10 +02:00
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 <raymes@chromium.org> Tested-by: Sonny Rao <sonnyrao@chromium.org> Reviewed-by: David James <davidjames@chromium.org> Reviewed-by: Zdenek Behan <zbehan@chromium.org> Commit-Ready: Sonny Rao <sonnyrao@chromium.org>
This commit is contained in:
parent
342dbdaf10
commit
e2e33f1b17
10
chroot_version_hooks.d/13_enable_gold
Executable file
10
chroot_version_hooks.d/13_enable_gold
Executable file
@ -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
|
Loading…
x
Reference in New Issue
Block a user