From 5a03c2569046f9b3919429088f230b01e719360f Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 18 Jul 2012 07:17:43 +0000 Subject: mkmf.rb: hack for -framework * lib/mkmf.rb (have_framework): get rid of separating -framework option and its argument and dealing with the argument as a library or an object name. if $LDFLAGS were an array... git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/tk/extconf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/tk/extconf.rb') diff --git a/ext/tk/extconf.rb b/ext/tk/extconf.rb index 6d34f1a492..778201c396 100644 --- a/ext/tk/extconf.rb +++ b/ext/tk/extconf.rb @@ -1995,7 +1995,7 @@ if TkLib_Config["tcltk-framework"] end end end - $LDFLAGS << ' ' << libs.gsub(/((?:\A|\s)-framework)\s/, '\1=') + $LDFLAGS << ' ' << libs.gsub(/((?:\A|\s)-framework)\s/, "\\1\0") $libs << ' -ltk -ltcl' setup_for_macosx_framework(tclver, tkver) if tcl_cfg_dir && tk_cfg_dir end -- cgit v1.2.3