From bcf63575fb9b3e07ee121b818c357c246c52a6a8 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Wed, 14 Sep 2016 11:31:24 +0200 Subject: [PATCH] Programming/gcc/build: - no need to patch gcc 4.9.4 --- Programming/gcc/build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Programming/gcc/build b/Programming/gcc/build index 1160fbc..c7bd9b8 100755 --- a/Programming/gcc/build +++ b/Programming/gcc/build @@ -1,7 +1,8 @@ #!/usr/bin/env modbuild pbuild::patch_sources_Darwin() { - if [[ "${V_MAJOR}" == "4" ]]; then + if (( V_MAJOR == 4 && V_MINOR <= 8 )) || \ + (( V_MAJOR == 4 && V_MINOR == 9 && V_PATCHLVL < 4)); then patch -p1 < "${BUILD_BLOCK_DIR}/${V_MAJOR}/non-dead-strip.patch" patch -p1 < "${BUILD_BLOCK_DIR}/${V_MAJOR}/configure-as.patch" fi