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