diff options
-rw-r--r-- | SConstruct | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,5 @@ +import os + env = Environment() conf = Configure(env) @@ -11,6 +13,12 @@ for lib, h in (('glib-2.0', None), ('sqlite3', 'sqlite3.h'), ('gtk-x11-2.0', Non Exit(1) env = conf.Finish() +if 'CCFLAGS' in os.environ: + env.Append(CCFLAGS = os.environ['CCFLAGS'].split()) + +if 'LINKFLAGS' in os.environ: + env.Append(LINKFLAGS = os.environ['LINKFLAGS'].split()) + env.Append(CCFLAGS = ['-std=gnu99', '-g', '-Wall']) env.Append(LINKFLAGS = ['-Wl,--export-dynamic']) env.ParseConfig('pkg-config --cflags --libs glib-2.0') |