projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c99ae6
)
SConstruct: Fix the librt check in SConstruct.
author
Gabe Black
<gblack@eecs.umich.edu>
Sat, 22 Jan 2011 01:51:22 +0000
(17:51 -0800)
committer
Gabe Black
<gblack@eecs.umich.edu>
Sat, 22 Jan 2011 01:51:22 +0000
(17:51 -0800)
SConstruct
patch
|
blob
|
history
diff --git
a/SConstruct
b/SConstruct
index 6127113b6706cd5fe1425c2679e280ccc552236e..9bfd1d1c8ce58314051099339aad42f8ec7e455e 100755
(executable)
--- a/
SConstruct
+++ b/
SConstruct
@@
-704,8
+704,11
@@
if not conf.CheckLibWithHeader('z', 'zlib.h', 'C++','zlibVersion();'):
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."