Skip to content
Snippets Groups Projects
Commit a3dac6d7 authored by Filippo Cremonese's avatar Filippo Cremonese
Browse files

Use gold as default linker for host toolchain

parent bb4d30a7
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,8 @@ extra_gcc_configure_options:
- CFLAGS_FOR_TARGET="-I/usr/include/tirpc (@= options["use_old_glibc_cflags"] @)"
- CXXFLAGS_FOR_TARGET="-I/usr/include/tirpc (@= options["use_old_glibc_cflags"] @)"
- LDFLAGS_FOR_TARGET="(@= options["use_old_glibc_lflags"] @) -Wl,-z,origin -Wl,--enable-new-dtags -Wl,-rpath,$RPATH_PLACEHOLDER/lib"
extra_binutils_configure_options:
- --enable-gold=default
extra_gcc_make_variables: LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
#@ end
......
#@ load("/lib/fn_args.lib.yml", "mandatory")
#@ load("/lib/create_component.lib.yml", "single_build_component")
#@ load("/lib/shell.lib.yml", "expand_args")
#@ load("/components/toolchain/lib/common.lib.yml", "linker_flags")
#@yaml/text-templated-strings
---
#@ def _binutils_args(triple=mandatory, binutils_version=mandatory):
#@ def _binutils_args(triple=mandatory, binutils_version=mandatory, extra_binutils_configure_options=""):
#@ source_url = "https://ftp.gnu.org/gnu/binutils/binutils-" + binutils_version + ".tar.bz2"
configure: |
......@@ -39,6 +40,7 @@ configure: |
--disable-readline \
--disable-sim \
--without-stage1-ldflags \
(@= expand_args(extra_binutils_configure_options) @) \
CFLAGS="-w -ggdb3 -O3" \
CXXFLAGS="-w -ggdb3 -O3" \
LDFLAGS="(@= linker_flags @)"
......
......@@ -29,13 +29,14 @@
#@ gcc_sysroot=None,
#@ mingw64_version=None,
#@ extra_gcc_configure_options=None,
#@ extra_binutils_configure_options=None,
#@ extra_gcc_make_variables="",
#@ dynamic=None,
#@ spec=False,
#@ ):
#@ if/end binutils_version:
(@= "toolchain/" + toolchain_name + "/binutils" @): #@ create_binutils_component(triple=triple, binutils_version=binutils_version)
(@= "toolchain/" + toolchain_name + "/binutils" @): #@ create_binutils_component(triple=triple, binutils_version=binutils_version, extra_binutils_configure_options=extra_binutils_configure_options)
#@ if/end gdb_version:
(@= "toolchain/" + toolchain_name + "/gdb" @): #@ create_gdb_component(triple=triple, gdb_version=gdb_version)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment