From d704d686c6c998a2a3f95049337954a423e52ecf Mon Sep 17 00:00:00 2001 From: Arvind Sankar Date: Sun, 7 Jun 2020 18:35:49 -0400 Subject: [PATCH] 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. Signed-off-by: Arvind Sankar --- cmd/zpool/Makefile.am | 2 +- lib/libzutil/Makefile.am | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/zpool/Makefile.am b/cmd/zpool/Makefile.am index 5efa1318440d..157fed2e01e8 100644 --- a/cmd/zpool/Makefile.am +++ b/cmd/zpool/Makefile.am @@ -1,6 +1,6 @@ include $(top_srcdir)/config/Rules.am -DEFAULT_INCLUDES += -I. +DEFAULT_INCLUDES += -I$(srcdir) sbin_PROGRAMS = zpool diff --git a/lib/libzutil/Makefile.am b/lib/libzutil/Makefile.am index 092312e0dcd0..a41a765f0397 100644 --- a/lib/libzutil/Makefile.am +++ b/lib/libzutil/Makefile.am @@ -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