From 897166a86d68bdc2ac613bd14d2ffcba34410fd6 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 25 Nov 2019 13:55:18 +0100 Subject: [PATCH] build-sys: fix out-of-tree build for hwclock The file sys-utils/hwclock-parse-date.c is generated from .y and stored in the build directory and "#include hwclock.h" is interpreted relatively to the build tree rather than to source tree. We need explicit -I compiler option to point to $srcdir for hwclock. Signed-off-by: Karel Zak --- sys-utils/Makemodule.am | 1 + 1 file changed, 1 insertion(+) diff --git a/sys-utils/Makemodule.am b/sys-utils/Makemodule.am index 0c0657e131..baf851e5b8 100644 --- a/sys-utils/Makemodule.am +++ b/sys-utils/Makemodule.am @@ -454,6 +454,7 @@ hwclock_SOURCES = \ sys-utils/hwclock.h \ sys-utils/hwclock-parse-date.y hwclock_LDADD = $(LDADD) libcommon.la -lm +hwclock_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/sys-utils if USE_HWCLOCK_CMOS hwclock_SOURCES += \ sys-utils/hwclock-cmos.c -- 2.47.3