changeset d38c1f650a4e in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=d38c1f650a4e
description:
SConstruct: Fix the librt check in SConstruct.
diffstat:
SConstruct | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (17 lines):
diff -r 494b5426e70d -r d38c1f650a4e SConstruct
--- a/SConstruct Thu Jan 20 22:13:33 2011 -0800
+++ b/SConstruct Fri Jan 21 17:51:22 2011 -0800
@@ -704,8 +704,11 @@
Exit(1)
# Check for librt.
-have_posix_clock = conf.CheckLib(None, 'clock_nanosleep', 'time.h') or \
- conf.CheckLib('rt', 'clock_nanosleep', 'time.h')
+have_posix_clock = \
+ conf.CheckLibWithHeader(None, 'time.h', 'C',
+ 'clock_nanosleep(0,0,NULL,NULL);') or \
+ conf.CheckLibWithHeader('rt', 'time.h', 'C',
+ 'clock_nanosleep(0,0,NULL,NULL);')
if not have_posix_clock:
print "Can't find library for POSIX clocks."
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev