From a6803320ce726ca8cd6500364ca3e11b6b3cb6a7 Mon Sep 17 00:00:00 2001 From: Soumitra Chatterjee Date: Mon, 11 Apr 2016 23:28:37 +0530 Subject: [PATCH] Pass -static to link line when configured using --static-libs --- config/config_libs.rb | 1 + 1 file changed, 1 insertion(+) 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