[examples-v2 commit] hello: get CFLAGS from environment in wscript
Gedare Bloom
gedare at rtems.org
Thu Dec 12 19:49:53 UTC 2013
Module: examples-v2
Branch: master
Commit: adfa43cb9ccea5e355ff5330c05d332f7789a6d0
Changeset: http://git.rtems.org/examples-v2/commit/?id=adfa43cb9ccea5e355ff5330c05d332f7789a6d0
Author: Gedare Bloom <gedare at rtems.org>
Date: Fri Nov 22 06:49:52 2013 -0500
hello: get CFLAGS from environment in wscript
---
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'])
More information about the vc
mailing list