summaryrefslogtreecommitdiffstats
path: root/tools/dwarves/patches/100-reproducible-builds.patch
blob: 15bddd56457a38af52fa451fe8f8011e66ac37a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/pahole.c
+++ b/pahole.c
@@ -3723,6 +3723,9 @@ int main(int argc, char *argv[])
 		goto out;
 	}
 
+	if (getenv("SOURCE_DATE_EPOCH") || getenv("KBUILD_BUILD_TIMESTAMP"))
+		conf_load.reproducible_build = true;
+
 	if (dwarves__init()) {
 		fputs("pahole: insufficient memory\n", stderr);
 		goto out;