Package: jstest-gtk / 0.1.1~git20140501-1

flags-from-env.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Pass build flags from the environment
Author: Stephen Kitt <steve@sk2.org>
Forwarded: no

--- jstest-gtk-0.1.1~git20090722.orig/SConstruct
+++ jstest-gtk-0.1.1~git20090722/SConstruct
@@ -15,8 +15,13 @@
 ##  You should have received a copy of the GNU General Public License
 ##  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-env = Environment(CXXFLAGS=["-g", "-Wall", "-Werror"])
+import os
+env = Environment()
 env.ParseConfig('pkg-config --cflags --libs gtkmm-2.4 sigc++-2.0 expat x11')
+env.Append(CPPFLAGS = os.environ['CPPFLAGS'],
+           CFLAGS = os.environ['CFLAGS'],
+           CXXFLAGS = os.environ['CXXFLAGS'],
+           LINKFLAGS = os.environ['LINKFLAGS'])
 env.Program('jstest-gtk', [
     'src/axis_widget.cpp',
     'src/button_widget.cpp',