diff --git a/config/config_libs.rb b/config/config_libs.rb index bdb09d45..d4490820 100644 --- a/config/config_libs.rb +++ b/config/config_libs.rb @@ -157,6 +157,7 @@ CONFIG['LOADLIBES'] += result.keys.map { |s| '-l' + s.escape } when 'static' CONFIG['LOADLIBES'] += ['-Wl,-z,muldefs'] unless CONFIG['OS_NAME'] == 'Mac\ OS\ X' or CONFIG['OS_NAME'] == 'Windows' + CONFIG['LOADLIBES'] += ['-static'] # Add the libraries with their full path to the command line. # We have to sort them in the order as they appear in +libs+, otherwise