From 13e29ee211b2584960080ddbf518b2bfb37e8352 Mon Sep 17 00:00:00 2001 From: Eremey Valetov Date: Sat, 13 Jun 2026 07:56:32 -0400 Subject: [PATCH] ci: install libfl2 for the DJGPP binutils The prebuilt DJGPP ar and ld from the andrewwutw release are linked against the flex runtime (libfl.so.2), which a clean GitHub runner does not have, so linking libuc2.a failed with a loader error. Install libfl2 before extracting the toolchain. --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d0eb7f0..9fe6a57 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -87,6 +87,10 @@ jobs: - uses: actions/checkout@v4 - name: Install DJGPP cross-toolchain run: | + # The prebuilt DJGPP binutils (ar, ld) are linked against the + # flex runtime; install it so they load on a clean runner. + sudo apt-get update + sudo apt-get install -y libfl2 curl -fsSL -o djgpp.tar.bz2 "$DJGPP_URL" echo "${DJGPP_SHA256} djgpp.tar.bz2" | sha256sum -c - sudo tar xjf djgpp.tar.bz2 -C /opt # -> /opt/djgpp