File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 25
25
26
26
Logging ::message "=== OpenSSL for Ruby configurator ===\n "
27
27
28
- # Add -Werror=deprecated-declarations to $warnflags if available
29
- OpenSSL . deprecated_warning_flag
28
+ unless defined? ( ::TruffleRuby ) # Let it be lazily computed only if needed
29
+ # Add -Werror=deprecated-declarations to $warnflags if available
30
+ OpenSSL . deprecated_warning_flag
31
+ end
30
32
31
33
##
32
34
# Adds -DOSSL_DEBUG for compilation and some more targets when GCC is used
37
39
end
38
40
39
41
Logging ::message "=== Checking for system dependent stuff... ===\n "
40
- have_library ( "nsl" , "t_open" )
41
- have_library ( "socket" , "socket" )
42
+ unless defined? ( ::TruffleRuby ) # These do not exist on any of our supported platforms
43
+ have_library ( "nsl" , "t_open" )
44
+ have_library ( "socket" , "socket" )
45
+ end
42
46
if $mswin || $mingw
43
47
have_library ( "ws2_32" )
44
48
end
You can’t perform that action at this time.
0 commit comments