Fix VPATH builds for user config

cmd/zpool and lib/libzutil Makefile's use -I., which won't work with a
VPATH build. Replace it with -I$(srcdir) instead.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Closes #10379
Closes #10421
This commit is contained in:
Arvind Sankar 2020-06-07 18:35:49 -04:00 committed by Brian Behlendorf
parent 71504277ae
commit 66786f7943
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
include $(top_srcdir)/config/Rules.am
DEFAULT_INCLUDES += -I.
DEFAULT_INCLUDES += -I$(srcdir)
sbin_PROGRAMS = zpool

View File

@ -3,7 +3,7 @@ include $(top_srcdir)/config/Rules.am
# Suppress unused but set variable warnings often due to ASSERTs
AM_CFLAGS += $(NO_UNUSED_BUT_SET_VARIABLE)
DEFAULT_INCLUDES += -I.
DEFAULT_INCLUDES += -I$(srcdir)
noinst_LTLIBRARIES = libzutil.la