diff options
Diffstat (limited to 'meta-networking/recipes-protocols/openlldp/files/0001-autotools-Add-include-path-to-generated-version.h.patch')
-rw-r--r-- | meta-networking/recipes-protocols/openlldp/files/0001-autotools-Add-include-path-to-generated-version.h.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta-networking/recipes-protocols/openlldp/files/0001-autotools-Add-include-path-to-generated-version.h.patch b/meta-networking/recipes-protocols/openlldp/files/0001-autotools-Add-include-path-to-generated-version.h.patch new file mode 100644 index 0000000000..b58fc104d2 --- /dev/null +++ b/meta-networking/recipes-protocols/openlldp/files/0001-autotools-Add-include-path-to-generated-version.h.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From eb14aa66dc0384071af401cced8c02993b55502e Mon Sep 17 00:00:00 2001 | ||
2 | From: Jonathan Richardson <jonathan.richardson@broadcom.com> | ||
3 | Date: Wed, 26 Feb 2020 15:54:51 -0800 | ||
4 | Subject: [PATCH] autotools: Add include path to generated version.h | ||
5 | |||
6 | When the build dir isn't the same as source dir it fails to compile | ||
7 | because the generated version.h from AC_CONFIG_FILES is always in build | ||
8 | dir. Include the path to it in AM_CPPFLAGS. | ||
9 | |||
10 | Signed-off-by: Jonathan Richardson <jonathan.richardson@broadcom.com> | ||
11 | |||
12 | --- | ||
13 | Makefile.am | 3 +++ | ||
14 | 1 file changed, 3 insertions(+) | ||
15 | |||
16 | diff --git a/Makefile.am b/Makefile.am | ||
17 | index 0fb9bb0..2952019 100644 | ||
18 | --- a/Makefile.am | ||
19 | +++ b/Makefile.am | ||
20 | @@ -14,6 +14,9 @@ endif | ||
21 | AM_CPPFLAGS = -I${srcdir}/include -DSYSCONFDIR="\"${sysconfdir}\"" \ | ||
22 | -D_FORTIFY_SOURCE=2 | ||
23 | |||
24 | +# Required for the generated version.h when build dir is not the same as srcdir. | ||
25 | +AM_CPPFLAGS += -I${top_builddir}/include | ||
26 | + | ||
27 | ACLOCAL_AMFLAGS = -I m4 | ||
28 | |||
29 | parse_cli.o: CFLAGS+=-U_FORTIFY_SOURCE -Wno-error | ||