summaryrefslogtreecommitdiff
path: root/recipes/python/python-scons
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2010-03-30 11:20:57 +0200
committerKoen Kooi <koen@openembedded.org>2010-03-30 13:03:33 +0200
commit584b124b6b8672c6cd0de9254269da5f3817df8e (patch)
tree36c77719705e5d3a0b9c7414955dbcfafd916cab /recipes/python/python-scons
parent39e783decf0559165750d665a7bcf3d369f6e811 (diff)
python-scons: update to 1.3.0
* stage sconscript file that gets the toolchain options from the environment
Diffstat (limited to 'recipes/python/python-scons')
-rw-r--r--recipes/python/python-scons/toolchain-from-env.SConscript12
1 files changed, 12 insertions, 0 deletions
diff --git a/recipes/python/python-scons/toolchain-from-env.SConscript b/recipes/python/python-scons/toolchain-from-env.SConscript
new file mode 100644
index 0000000000..051ccec79e
--- /dev/null
+++ b/recipes/python/python-scons/toolchain-from-env.SConscript
@@ -0,0 +1,12 @@
+#toolchain-from-env
+
+import os
+env['CC'] = os.environ['CC']
+env['CXX'] = os.environ['CXX']
+env['CPP'] = os.environ['CPP']
+env['AR'] = os.environ['AR']
+env['LD'] = os.environ['LD']
+env['CCLD'] = os.environ['CCLD']
+env['ENV']['PATH'] = os.environ['PATH']
+
+env['LINKFLAGS'] = os.environ['TARGET_LINK_HASH_STYLE'] + " " + env['LINKFLAGS']