Skip to content

Commit

Permalink
Fix ada patch
Browse files Browse the repository at this point in the history
  • Loading branch information
flavioc committed Nov 1, 2024
1 parent 0d5241e commit d4b823c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
14 changes: 5 additions & 9 deletions download-funcs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -180,15 +180,11 @@ download_glibc() {
cd ..
}

download_gcc () {
download $GCC_PKG $GCC_URL &&
if [ -d "$GCC_SRC" ]; then
return 0
fi
unpack xf $GCC_PKG $GCC_SRC &&
pushd $GCC_SRC &&
apply_patch $SCRIPT_DIR/patches/gcc/ada-hurd-amd64.diff 1 &&
popd
download_gcc() {
download_package $GCC_URL &&
pushd $GCC_SRC &&
apply_patch $SCRIPT_DIR/patches/gcc/ada-hurd-amd64.diff 1 &&
popd
}

download_sed() {
Expand Down
2 changes: 1 addition & 1 deletion download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

mkdir -p $SOURCE &&
pushd $SOURCE &&
download_package $GCC_URL &&
download_gcc &&
download_package $BINUTILS_URL &&
download $FLEX_PKG $FLEX_URL &&
unpack zxf $FLEX_PKG $FLEX_SRC &&
Expand Down
4 changes: 2 additions & 2 deletions patches/gcc/ada-hurd-amd64.diff
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- a/src/gcc/ada/Makefile.rtl
+++ b/src/gcc/ada/Makefile.rtl
--- a/gcc/ada/Makefile.rtl
+++ b/gcc/ada/Makefile.rtl
@@ -1674,6 +1674,37 @@ ifeq ($(strip $(filter-out x86_64 kfreeb
LIBRARY_VERSION := $(LIB_VERSION)
endif
Expand Down

0 comments on commit d4b823c

Please sign in to comment.