summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2019-05-27 10:08:27 +1000
committerChris Johns <chrisj@rtems.org>2019-05-27 10:08:27 +1000
commitd7979dece664f3c31d7cb2f4c3b25501e1ab809a (patch)
treefc62cfdbdaaf8cca1382984863beabf218ab2407 /misc
parent6c79a16e209e9f61904114ad82bac650417508e2 (diff)
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/wscript7
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):