Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame^] | 1 | From 71dab751a27a2e582b711de22873065dd28f4b65 Mon Sep 17 00:00:00 2001 |
| 2 | From: Paulo Neves <ptsneves@gmail.com> |
| 3 | Date: Thu, 28 Jul 2022 11:42:31 +0200 |
| 4 | Subject: [PATCH] flb_info.h.in: Do not hardcode compilation directories |
| 5 | |
| 6 | Including the source dir in the header makes the header not |
| 7 | reproducible and contaminates it with host builder paths. Instead |
| 8 | make it take CMAKE_DEBUG_SRCDIR that can be set to a known |
| 9 | reproducible value |
| 10 | --- |
| 11 | include/fluent-bit/flb_info.h.in | 2 +- |
| 12 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 13 | |
| 14 | diff --git a/include/fluent-bit/flb_info.h.in b/include/fluent-bit/flb_info.h.in |
| 15 | index a89485c..2579afc 100644 |
| 16 | --- a/include/fluent-bit/flb_info.h.in |
| 17 | +++ b/include/fluent-bit/flb_info.h.in |
| 18 | @@ -23,7 +23,7 @@ |
| 19 | #define STR_HELPER(s) #s |
| 20 | #define STR(s) STR_HELPER(s) |
| 21 | |
| 22 | -#define FLB_SOURCE_DIR "@CMAKE_SOURCE_DIR@" |
| 23 | +#define FLB_SOURCE_DIR "@CMAKE_DEBUG_SRCDIR@" |
| 24 | |
| 25 | /* General flags set by CMakeLists.txt */ |
| 26 | @FLB_BUILD_FLAGS@ |