From: Richard Yao Date: Sun, 16 Dec 2012 05:35:16 +0000 (-0500) Subject: Do not use KERNEL_DIR env var in Makefile.am X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=commitdiff_plain;h=fd7fd5ebcf6cceb107dd27592a9bd7d60f93738f;p=zfs.git Do not use KERNEL_DIR env var in Makefile.am A Gentoo user reported an issue where the build system would attempt to recurse into the kernel source tree if KERNEL_DIR is set in the environment. KERNEL_DIR is an environment variable that is used when the kernel sources are in a non-standard location, so it is necessary to stop relying on it to prevent this issue. https://bugs.gentoo.org/show_bug.cgi?id=433946 Signed-off-by: Richard Yao Signed-off-by: Brian Behlendorf --- diff --git a/Makefile.am b/Makefile.am index 9ffd6be..833bee6 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,13 +3,13 @@ include $(top_srcdir)/config/deb.am include $(top_srcdir)/config/tgz.am include $(top_srcdir)/config/arch.am +SUBDIRS = include if CONFIG_USER -USER_DIR = dracut udev etc man scripts lib cmd +SUBDIRS += dracut udev etc man scripts lib cmd endif if CONFIG_KERNEL -KERNEL_DIR = module +SUBDIRS += module endif -SUBDIRS = $(USER_DIR) $(KERNEL_DIR) include AUTOMAKE_OPTIONS = foreign EXTRA_DIST = autogen.sh zfs.spec.in zfs-modules.spec.in