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

Attempt to link host binutils against our glibc

parent 7f5a3638
No related branches found
No related tags found
No related merge requests found
#@ load("@ytt:data", "data")
#@ load("/lib/fn_args.lib.yml", "mandatory")
#@ load("/lib/create_component.lib.yml", "single_build_component")
#@ load("/lib/shell.lib.yml", "expand_args")
......@@ -39,13 +40,17 @@ configure: |
--disable-libdecnumber \
--disable-readline \
--disable-sim \
--without-stage1-ldflags \
--with-stage1-ldflags="(@= linker_flags @)" \
--with-boot-ldflags="(@= linker_flags @)" \
(@= expand_args(extra_binutils_configure_options) @) \
CFLAGS="-w -ggdb3 -O3" \
CXXFLAGS="-w -ggdb3 -O3" \
LDFLAGS="(@= linker_flags @)"
CFLAGS="-w -ggdb3 -O3 (@= data.values.use_old_glibc_cflags @)" \
CXXFLAGS="-w -ggdb3 -O3 (@= data.values.use_old_glibc_cflags @)" \
LDFLAGS="(@= linker_flags @) (@= data.values.use_old_glibc_lflags @)"
build_system: make
add_to_path: ${ORCHESTRA_ROOT}/x86_64-pc-linux-gnu/(@= triple @)/binutils-bin/(@= binutils_version @)
build_dependencies:
- glibc
- toolchain/host/gcc
#@ end
---
......
......@@ -18,6 +18,7 @@
#@ fail("GCC stage must be 1 or 2")
#@ end
#@ if/end "host" not in toolchain_name:
- toolchain/(@= toolchain_name @)/binutils
#@ if/end musl_version:
......@@ -101,7 +102,6 @@ configure: |
--enable-obsolete \
--enable-secureplt \
--disable-werror \
--with-system-zlib \
--enable-nls \
--without-included-gettext \
--enable-checking=release \
......@@ -129,6 +129,7 @@ configure: |
--with-gmp="$ORCHESTRA_ROOT" \
--with-mpfr="$ORCHESTRA_ROOT" \
--with-mpc="$ORCHESTRA_ROOT" \
--without-zstd \
(@= expand_args(extra_gcc_configure_options) @) \
(@= expand_args(build_specific_configure_options) @) \
CFLAGS="-w -ggdb3 -O3" \
......
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