diff options
author | Gedare Bloom <gedare@rtems.org> | 2013-11-22 06:49:52 -0500 |
---|---|---|
committer | Gedare Bloom <gedare@rtems.org> | 2013-12-12 14:55:54 -0500 |
commit | adfa43cb9ccea5e355ff5330c05d332f7789a6d0 (patch) | |
tree | 20426f668d7cf251bcad9741bad0a04891ca59bb | |
parent | 0d56108cdbf76d5ad6303f172dee1e1e5bacb8d4 (diff) |
hello: get CFLAGS from environment in wscript
-rw-r--r-- | hello/hello_world_c/wscript | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hello/hello_world_c/wscript b/hello/hello_world_c/wscript index c7c1528..74e191b 100644 --- a/hello/hello_world_c/wscript +++ b/hello/hello_world_c/wscript @@ -15,18 +15,18 @@ def build(bld): arch_bsp = bld.get_env()['RTEMS_ARCH_BSP'] arch = bld.get_env()['RTEMS_ARCH'] bsp = bld.get_env()['RTEMS_BSP'] + cflags = bld.get_env()['CFLAGS'] # # The include paths and defines. # bld.includes = ['.'] bld.defines = ['PACKAGE_VERSION="' + version + '"'] - bld.cflags = ['-g', '-O'] bld(features = 'c cprogram', target = 'hello', includes = bld.includes, defines = bld.defines, - cflags = bld.cflags, + cflags = cflags, source = ['test.c']) |