diff options
Diffstat (limited to 'util/crossgcc')
-rwxr-xr-x | util/crossgcc/buildgcc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index 49f6f4cc10..3f5f562adc 100755 --- a/util/crossgcc/buildgcc +++ b/util/crossgcc/buildgcc @@ -269,7 +269,7 @@ unpack_and_patch() { for patch in patches/${dir}_*.patch; do test -r $patch || continue printf " o $(basename $patch)\n" - $PATCH -s -N -p0 < $(echo $patch) || { + (cd ${dir} && $PATCH -s -N -p1 <../${patch}) || { printf "\n${RED}Failed $patch.${NC}\n" exit 1 } |