mirror of https://github.com/dynup/kpatch
Merge pull request #1283 from jerdfelt/jerdfelt/prefix-strip
kpatch-cc: fix stripping of source tree prefix
This commit is contained in:
commit
67e4e2048a
|
@ -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|\
|
||||
|
|
Loading…
Reference in New Issue