File use-cflags-and-cxxflags.patch of Package qdevelop
diff -Nur qdevelop-0.29/plugins/formatting-astyle/formatting-astyle.pro new/plugins/formatting-astyle/formatting-astyle.pro
--- qdevelop-0.29/plugins/formatting-astyle/formatting-astyle.pro 2016-01-08 03:57:24.000000000 +0100
+++ new/plugins/formatting-astyle/formatting-astyle.pro 2017-03-17 23:29:10.713518752 +0100
@@ -29,3 +29,6 @@
win32 {
OBJECTS_DIR = ../../build/o/win32
}
+# user defined CXX and CLFAGS
+QMAKE_CFLAGS += $$(CFLAGS)
+QMAKE_CXXFLAGS += $$(CXXFLAGS)
diff -Nur qdevelop-0.29/plugins/tools-regexp-planner/rep.pro new/plugins/tools-regexp-planner/rep.pro
--- qdevelop-0.29/plugins/tools-regexp-planner/rep.pro 2016-01-08 03:57:24.000000000 +0100
+++ new/plugins/tools-regexp-planner/rep.pro 2017-03-17 23:29:25.577622018 +0100
@@ -20,3 +20,6 @@
win32 {
OBJECTS_DIR = ../../build/o/win32
}
+# user defined CXX and CLFAGS
+QMAKE_CFLAGS += $$(CFLAGS)
+QMAKE_CXXFLAGS += $$(CXXFLAGS)
diff -Nur qdevelop-0.29/QDevelop.pro new/QDevelop.pro
--- qdevelop-0.29/QDevelop.pro 2016-01-08 03:57:28.000000000 +0100
+++ new/QDevelop.pro 2017-03-17 23:28:53.429398671 +0100
@@ -148,6 +148,9 @@
OBJECTS_DIR += build/o/win32
CONFIG -= debug_and_release
}
+# user defined CXX and CLFAGS
+QMAKE_CFLAGS += $$(CFLAGS)
+QMAKE_CXXFLAGS += $$(CXXFLAGS)
!exists(resources/translations/QDevelop_Russian.qm) {
error(Please run \"lrelease QDevelop.pro\" before building the project)
}