diff options
author | Chris Johns <chrisj@rtems.org> | 2019-05-27 10:08:27 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2019-05-27 10:08:27 +1000 |
commit | d7979dece664f3c31d7cb2f4c3b25501e1ab809a (patch) | |
tree | fc62cfdbdaaf8cca1382984863beabf218ab2407 /misc | |
parent | rtemstoolkit/path : print OSError in mkdir (diff) | |
download | rtems-tools-d7979dece664f3c31d7cb2f4c3b25501e1ab809a.tar.bz2 |
waf: Update the check_cc tests to a newer method supported by waf.
- Fix a minor issue in covoar's use of 64bit calls.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/wscript | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/misc/wscript b/misc/wscript index 95c7bde..cd31091 100644 --- a/misc/wscript +++ b/misc/wscript @@ -33,8 +33,11 @@ def options(opt): def configure(conf): conf.load('compiler_c') - conf.check_cc(function_name = 'strnlen', header_name="string.h", - features = 'c', mandatory = False) + conf.check_cc(fragment = ''' + #include <string.h> + int main() { size_t l = strnlen("string", 10); } ''', + cflags = '-Wall', define_name = 'HAVE_STRNLEN', + msg = 'Checking for strnlen', mandatory = False) conf.write_config_header('config.h') def build(bld): |