Skip to content

Commit

Permalink
build: update the GCC toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
adonis0147 committed Oct 8, 2024
1 parent a94dfeb commit ad642f8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 70 deletions.
69 changes: 0 additions & 69 deletions .cirrus.yml

This file was deleted.

1 change: 1 addition & 0 deletions .cirrus.yml
2 changes: 1 addition & 1 deletion toolchain/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM ubuntu:22.04 AS builder

RUN apt update && apt upgrade --yes
RUN DEBIAN_FRONTEND=noninteractive apt install --yes \
build-essential texinfo bison git curl rsync gawk python-is-python3 help2man file
build-essential texinfo bison flex git curl rsync gawk python-is-python3 help2man file

RUN mkdir -p /opt/patchelf
RUN curl -L "https://github.com/NixOS/patchelf/releases/download/0.16.1/patchelf-0.16.1-$(uname -m).tar.gz" \
Expand Down
7 changes: 7 additions & 0 deletions toolchain/generate_toolchan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,10 @@ function build_binutils_final() {
mkdir build
cd build

# Prevent binutils from linking libfl.so
export LEX='missing lex'
export FLEX='missing flex'

LDFLAGS="-L${PREFIX}/lib -Wl,-rpath,${PREFIX}/lib \
-Wl,-dynamic-linker,$(find "${PREFIX}/lib" -name 'ld-linux-*')" \
../configure --prefix="${PREFIX}" \
Expand All @@ -277,6 +281,9 @@ function build_binutils_final() {
make -j "$(nproc)"
make install-strip

unset FLEX
unset LEX

# Remove the old files
rm -rf "${PREFIX}/lib/ldscripts"

Expand Down

0 comments on commit ad642f8

Please sign in to comment.