summaryrefslogtreecommitdiffstats
path: root/linkers/wscript
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2012-09-15 17:58:00 +1000
committerChris Johns <chrisj@rtems.org>2012-09-15 17:58:00 +1000
commit993aa67acf6d9c921d0e238f9a6bc98e6059f41f (patch)
tree5aa7f492e4eea4295ee7fe475a91004d0afcea7d /linkers/wscript
parentAdd to git. (diff)
downloadrtems-tools-993aa67acf6d9c921d0e238f9a6bc98e6059f41f.tar.bz2
Fix the waf script.
Diffstat (limited to 'linkers/wscript')
-rw-r--r--linkers/wscript10
1 files changed, 5 insertions, 5 deletions
diff --git a/linkers/wscript b/linkers/wscript
index f87e69e..37d0f3e 100644
--- a/linkers/wscript
+++ b/linkers/wscript
@@ -27,8 +27,8 @@ def options(opt):
help = 'Print the commands as strings.')
def configure(conf):
- conf.check_tool("g++")
- conf.check_tool("gcc")
+ conf.load("g++")
+ conf.load("gcc")
conf_libiberty(conf)
conf_libelf(conf)
@@ -68,7 +68,7 @@ def build(bld):
#
# Create each of the modules as object files each with their own
# configurations.
- #
+ #
libelf = bld_libelf(bld)
libiberty = bld_libiberty(bld)
@@ -132,7 +132,7 @@ def bld_libelf(bld):
rule = './${SRC} > ${TGT}')
elif sys.platform == 'win32':
host_source += [libelf + 'mmap_win32.c']
-
+
bld.stlib(target = 'elf',
features = 'c',
uses = ['native-elf-format'],
@@ -212,7 +212,7 @@ def conf_libiberty(conf):
conf.check(header_name='unistd.h', features = 'c', mandatory = False)
conf.check(header_name='vfork.h', features = 'c', mandatory = False)
- conf.check_cc(function_name='getrusage',
+ conf.check_cc(function_name='getrusage',
header_name="sys/time.h sys/resource.h",
features = 'c', mandatory = False)