File: config_flags.diff

package info (click to toggle)
python-qt4 4.11.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 39,748 kB
  • ctags: 6,146
  • sloc: python: 125,938; cpp: 12,612; xml: 292; makefile: 258; php: 27; sh: 27
file content (26 lines) | stat: -rw-r--r-- 881 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Description: make sure build flags are applied when building designer plugin
Author: Dmitry Shachnev <mitya57@gmail.com>
Forwarded: no
Last-Update: 2013-11-11

--- a/configure.py
+++ b/configure.py
@@ -1000,6 +1000,10 @@
                 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()
 
@@ -2183,6 +2187,7 @@
         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()