File tree 1 file changed +2
-5
lines changed 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -729,10 +729,10 @@ if not cc.has_function('socket')
729
729
endif
730
730
endif
731
731
732
+ lib_rt = cc.find_library (' rt' , required : false )
732
733
realtime_libs = []
733
734
have = cc.has_function(' clock_gettime' )
734
735
if not have
735
- lib_rt = cc.find_library (' rt' , required : false )
736
736
if lib_rt.found()
737
737
realtime_libs += lib_rt
738
738
have = cc.has_function(' clock_gettime' ,
@@ -745,7 +745,6 @@ thread_libs = dependency('threads')
745
745
746
746
have = cc.has_function(' timer_create' )
747
747
if not have
748
- lib_rt = cc.find_library (' rt' , required : false )
749
748
if lib_rt.found()
750
749
realtime_libs = [lib_rt]
751
750
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,
You can’t perform that action at this time.
0 commit comments