patch for macOS 14.4 and gcc 8 added

This commit is contained in:
2019-04-25 16:00:46 +02:00
parent 284c277c2f
commit 1a544fa84e
2 changed files with 169 additions and 4 deletions

View File

@@ -2,14 +2,17 @@
pbuild::set_download_url "https://ftp.gnu.org/gnu/gcc/$P-$V/$P-$V.tar.gz"
pbuild::patch_sources_Darwin() {
pbuild::pre_prep() {
if (( V_MAJOR == 4 && V_MINOR <= 8 )) || \
(( V_MAJOR == 4 && V_MINOR == 9 && V_PATCHLVL < 4)); then
patch -p1 < "${BUILDBLOCK_DIR}/${V_MAJOR}/non-dead-strip.patch"
patch -p1 < "${BUILDBLOCK_DIR}/${V_MAJOR}/configure-as.patch"
pbuild::add_patch_Darwin "${V_MAJOR}/non-dead-strip.patch"
pbuild::add_patch_Darwin "${V_MAJOR}/configure-as.patch"
fi
if (( V_MAJOR == 5 )) || (( V_MAJOR == 6 )); then
patch -p1 < "${BUILDBLOCK_DIR}/${V_MAJOR}/PR57438_avoiding_empty_function_bodies_and_trailing_labels.patch"
pbuild::add_patch_Darwin "${V_MAJOR}/PR57438_avoiding_empty_function_bodies_and_trailing_labels.patch"
fi
if (( V_MAJOR == 8 )); then
pbuild::add_patch_Darwin "files/headers-10.14.4-fix.patch"
fi
}