blob: 2e3730df47695bf77f37c241b4ff282d853fefed [file] [log] [blame]
Andrew Geisslerc5535c92023-01-27 16:10:19 -06001From 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---
7 wscript | 2 ++
8 1 file changed, 2 insertions(+)
9
10diff --git a/wscript b/wscript
11index 7329d6e46889..de51f1e9cdd9 100644
12--- a/wscript
13+++ b/wscript
14@@ -140,6 +140,7 @@ def configure(ctx):
15 # Ensure m4 is present, or bison will fail with SIGPIPE
16 ctx.find_program('m4')
17 ctx.load('bison')
18+ ctx.add_os_flags('BISONFLAGS')
19
20 for opt in opt_map:
21 ctx.env[opt] = opt_map[opt]
22@@ -911,6 +912,7 @@ int main(int argc, char **argv) {
23 msg_setting("CFLAGS", " ".join(ctx.env.CFLAGS))
24 msg_setting("LDFLAGS", " ".join(ctx.env.LDFLAGS))
25 msg_setting("LINKFLAGS_NTPD", " ".join(ctx.env.LINKFLAGS_NTPD))
26+ msg_setting("BISONFLAGS", ctx.env.BISONFLAGS)
27 msg_setting("PREFIX", ctx.env.PREFIX)
28 msg_setting("LIBDIR", ctx.env.LIBDIR)
29 msg_setting("Droproot Support", droproot_type)