diff options
author | Brian Behlendorf <[email protected]> | 2019-06-24 09:32:47 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2019-06-24 09:32:47 -0700 |
commit | 8f12a4f8d2846ca668f8ad90d9ea5c19c8c0b78f (patch) | |
tree | 9a200ae6e813a209cf67bd04eb563e9cfe52487e /module/Makefile.in | |
parent | cc9625c47c39ef9c558a51c6ae662d2342b70679 (diff) |
Fix out-of-tree build failures
Resolve the incorrect use of srcdir and builddir references for
various files in the build system. These have crept in over time
and went unnoticed because when building in the top level directory
srcdir and builddir are identical.
With this change it's again possible to build in a subdirectory.
$ mkdir obj
$ cd obj
$ ../configure
$ make
Reviewed-by: loli10K <[email protected]>
Reviewed-by: Tony Hutter <[email protected]>
Reviewed-by: Don Brady <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #8921
Closes #8943
Diffstat (limited to 'module/Makefile.in')
-rw-r--r-- | module/Makefile.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/module/Makefile.in b/module/Makefile.in index 935bd2663..eca7691ae 100644 --- a/module/Makefile.in +++ b/module/Makefile.in @@ -66,8 +66,9 @@ modules_uninstall: distdir: list='$(subdir-m)'; for subdir in $$list; do \ - (cd @top_srcdir@/module && find $$subdir -name '*.c' -o -name '*.h' -o -name '*.S' |\ - xargs cp --parents -t $$distdir); \ + (cd @top_srcdir@/module && find $$subdir \ + -name '*.c' -o -name '*.h' -o -name '*.S' | \ + xargs cp --parents -t @abs_top_builddir@/module/$$distdir); \ done distclean maintainer-clean: clean |