From 267c7486c7438b5b36ef44a15ed34123c64a4e1c Mon Sep 17 00:00:00 2001 From: jD91mZM2 <me@krake.one> Date: Wed, 1 Jul 2020 15:46:44 +0200 Subject: [PATCH] Add libexpat to GDB --- recipes/gnu-binutils/recipe.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/recipes/gnu-binutils/recipe.sh b/recipes/gnu-binutils/recipe.sh index edd7aaf74..204c77578 100644 --- a/recipes/gnu-binutils/recipe.sh +++ b/recipes/gnu-binutils/recipe.sh @@ -1,7 +1,7 @@ GIT=https://gitlab.redox-os.org/redox-os/binutils-gdb.git BRANCH=redox GIT_UPSTREAM=git://sourceware.org/git/binutils-gdb.git -BUILD_DEPENDS=(relibc) +BUILD_DEPENDS=(expat) function recipe_version { printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" @@ -18,7 +18,8 @@ function recipe_build { mkdir -p "$sysroot/usr" ln -sf "$sysroot/include" "$sysroot/usr/include" ln -sf "$sysroot/lib" "$sysroot/usr/lib" - export LDFLAGS="--static" + export CPPFLAGS="-I$sysroot/include -g" + export LDFLAGS="-L$sysroot/lib -static -g" ./configure \ --build=${BUILD} \ --host=${HOST} \ @@ -27,6 +28,10 @@ function recipe_build { --with-sysroot=/ \ --with-build-sysroot="$sysroot" \ --enable-gdb \ + --with-expat \ + --with-multilib \ + --with-interwork \ + --enable-targets=x86_64-unknown-redox \ --disable-nls \ --disable-werror "$REDOX_MAKE" -j"$($NPROC)" -- GitLab