File jstest-gtk-flags-from-env.patch of Package jstest-gtk-git
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',