diff --git a/kpatch-build/kpatch-cc b/kpatch-build/kpatch-cc index 5474a13..6f0063e 100755 --- a/kpatch-build/kpatch-cc +++ b/kpatch-build/kpatch-cc @@ -23,7 +23,7 @@ if [[ "$TOOLCHAINCMD" =~ ^(.*-)?gcc$ || "$TOOLCHAINCMD" =~ ^(.*-)?clang$ ]] ; th [[ "$obj" = */.tmp_mc_*.o ]] && break; [[ "$obj" = */.tmp_*.o ]] && obj="${obj/.tmp_/}" - relobj=${obj//$KPATCH_GCC_SRCDIR\//} + relobj=${obj##$KPATCH_GCC_SRCDIR/} case "$relobj" in *.mod.o|\ *built-in.o|\