mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 22:21:10 +02:00
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>
11 lines
345 B
Plaintext
Executable File
11 lines
345 B
Plaintext
Executable File
# 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
|