From 8169c607684dec7a104c17aa03ab71213d33a4f8 Mon Sep 17 00:00:00 2001
From: Dmitry Shachnev <mitya57@gmail.com>
Date: Thu, 8 Oct 2015 12:56:36 -0700
Subject: make sure build flags are applied when building designer plugin

Forwarded: no
Last-Update: 2013-11-11

Patch-Name: config_flags.diff
---
 configure.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/configure.py b/configure.py
index 1780f38..91ceced 100644
--- a/configure.py
+++ b/configure.py
@@ -995,6 +995,10 @@ include(%s)
                 if src_dir != os.path.curdir:
                     fout.write("VPATH = %s\n" % os.path.join(src_dir, "designer"))
 
+                fout.write("QMAKE_CFLAGS += %s\n" % macros["CFLAGS"])
+                fout.write("QMAKE_CXXFLAGS += %s\n" % macros["CXXFLAGS"])
+                fout.write("QMAKE_LFLAGS += %s\n" % macros["LFLAGS"])
+
                 fout.write(prj)
                 fout.close()
 
@@ -2166,6 +2170,7 @@ def main():
         sipconfig.error("This version of PyQt requires SIP v%s or later" % sipconfig.version_to_string(sip_min_version))
 
     global opts
+    global macros
 
     # Parse the command line.
     p = create_optparser()
