Skip to content

Commit a881083

Browse files
committed
Build GDB with static libexpat
Signed-off-by: Alice Ziuziakowska <[email protected]>
1 parent fe45eab commit a881083

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

build-binutils.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,11 @@ cd build
6060

6161
mkdir -p "$dist_dir"
6262

63-
# NOTE: We don't want to require `libexpat` to be dynamically linked.
64-
# It turns out to be quite hard to statically link *only* `libexpat`.
6563
../configure \
66-
--target "$target" \
64+
--target="$target" \
6765
--program-prefix="$target-" \
68-
--prefix "$dist_dir" \
69-
--with-expat=no
66+
--prefix="$dist_dir" \
67+
--with-libexpat-type=static
7068

7169
make -j "$(nproc)"
7270
make install

prepare-host.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ set -x
99
# Repository for the `gh` GitHub CLI tool used for creating releases.
1010
dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo
1111

12+
# Repository for expat-static
13+
dnf install -y almalinux-release-devel
14+
1215
dnf install -y \
1316
sudo \
1417
gh \
@@ -27,4 +30,5 @@ dnf install -y \
2730
python36 \
2831
zlib-devel \
2932
zlib-static \
30-
libffi-devel
33+
libffi-devel \
34+
expat-static

0 commit comments

Comments
 (0)