1From e51b4b37916dd20b13133cb7af16601b6bf3ace9 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 3 Sep 2018 10:54:54 -0700
4Subject: [PATCH] SConstruct: Fix path quoting for .def generator
5
6Patch by: Martin Keller <m.keller{_AT_}codesys.com>
7Upstream-Status: Backport
8[https://svn.apache.org/viewvc/serf/trunk/SConstruct?r1=1807594&r2=1809132]
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 SConstruct | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/SConstruct b/SConstruct
16index 18a45fa..571bdce 100644
17--- a/SConstruct
18+++ b/SConstruct
19@@ -160,7 +160,7 @@ env = Environment(variables=opts,
20
21 env.Append(BUILDERS = {
22     'GenDef' :
23-      Builder(action = sys.executable + ' build/gen_def.py $SOURCES > $TARGET',
24+      Builder(action = '"%s" "%s" $SOURCES > $TARGET' % (sys.executable, gen_def_script,),
25               suffix='.def', src_suffix='.h')
26   })
27
28