File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -728,10 +728,10 @@ if not cc.has_function('socket')
728
728
endif
729
729
endif
730
730
731
+ lib_rt = cc.find_library (' rt' , required : false )
731
732
realtime_libs = []
732
733
have = cc.has_function(' clock_gettime' )
733
734
if not have
734
- lib_rt = cc.find_library (' rt' , required : false )
735
735
if lib_rt.found()
736
736
realtime_libs += lib_rt
737
737
have = cc.has_function(' clock_gettime' ,
@@ -744,7 +744,6 @@ thread_libs = dependency('threads')
744
744
745
745
have = cc.has_function(' timer_create' )
746
746
if not have
747
- lib_rt = cc.find_library (' rt' , required : false )
748
747
if lib_rt.found()
749
748
realtime_libs = [lib_rt]
750
749
have = cc.has_function(' timer_create' ,
@@ -2717,9 +2716,7 @@ errnos_h = custom_target('errnos.h',
2717
2716
command : [' tools/all_errnos' , cc.cmd_array(), get_option (' c_args' )],
2718
2717
)
2719
2718
2720
- lib_rt = cc.find_library (' rt' , required : get_option (' build-lsfd' ))
2721
-
2722
- opt = not get_option (' build-lsfd' ).disabled()
2719
+ opt = not get_option (' build-lsfd' ).require(lib_rt.found()).disabled()
2723
2720
exe = executable (
2724
2721
' lsfd' ,
2725
2722
lsfd_sources, errnos_h,
You can’t perform that action at this time.
0 commit comments