1From 792cb4f9d13450251c6344eed2b35f382c98df0d Mon Sep 17 00:00:00 2001
2From: Alex Kiernan <alexk@zuma.ai>
3Date: Thu, 19 Jan 2023 13:00:45 +0000
4Subject: [PATCH] wscript: Add BISONFLAGS support
5
6---
7Upstream-Status: Pending
8
9 wscript | 2 ++
10 1 file changed, 2 insertions(+)
11
12diff --git a/wscript b/wscript
13index 7329d6e46889..de51f1e9cdd9 100644
14--- a/wscript
15+++ b/wscript
16@@ -140,6 +140,7 @@ def configure(ctx):
17     # Ensure m4 is present, or bison will fail with SIGPIPE
18     ctx.find_program('m4')
19     ctx.load('bison')
20+    ctx.add_os_flags('BISONFLAGS')
21
22     for opt in opt_map:
23         ctx.env[opt] = opt_map[opt]
24@@ -911,6 +912,7 @@ int main(int argc, char **argv) {
25     msg_setting("CFLAGS", " ".join(ctx.env.CFLAGS))
26     msg_setting("LDFLAGS", " ".join(ctx.env.LDFLAGS))
27     msg_setting("LINKFLAGS_NTPD", " ".join(ctx.env.LINKFLAGS_NTPD))
28+    msg_setting("BISONFLAGS", ctx.env.BISONFLAGS)
29     msg_setting("PREFIX", ctx.env.PREFIX)
30     msg_setting("LIBDIR", ctx.env.LIBDIR)
31     msg_setting("Droproot Support", droproot_type)
32