From: Karel Zak Date: Mon, 25 Nov 2019 12:55:18 +0000 (+0100) Subject: build-sys: fix out-of-tree build for hwclock X-Git-Tag: v2.35-rc1~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=897166a86d68bdc2ac613bd14d2ffcba34410fd6;p=thirdparty%2Futil-linux.git 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 --- 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