Skip to content

Commit 86bf73c

Browse files
AttilaFueloepamotin
authored andcommitted
objtool wrapper: use absolute path to call the wrapper
Older kernel versions run make outside of the build directory. This works since all paths are absolute. Relative paths will fail in such a scenario. Use an absolute path to the objtool wrapper as well, since the relative path breaks the build on older kernels. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Attila Fülöp <[email protected]> Closes #17541
1 parent 1d293b3 commit 86bf73c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ modules-Linux:
5757
$(if @KERNEL_LD@,LD=@KERNEL_LD@) $(if @KERNEL_LLVM@,LLVM=@KERNEL_LLVM@) \
5858
$(if @KERNEL_CROSS_COMPILE@,CROSS_COMPILE=@KERNEL_CROSS_COMPILE@) \
5959
$(if @KERNEL_ARCH@,ARCH=@KERNEL_ARCH@) \
60-
$(if @OBJTOOL_DISABLE_WERROR@,objtool=@top_builddir@/scripts/objtool-wrapper) \
60+
$(if @OBJTOOL_DISABLE_WERROR@,objtool=@abs_top_builddir@/scripts/objtool-wrapper) \
6161
M="$$PWD" @KERNEL_MAKE@ CONFIG_ZFS=m modules
6262

6363
modules-FreeBSD:

0 commit comments

Comments
 (0)