From a814f119c040728390c0bf0261fd8b257fae71f3 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 11 Nov 2015 14:28:35 +0000 Subject: [PATCH] cc: disable RUBYOPT variable. If this was set at build-time (i.e. by the Ruby 1.8.7 buildsystem) then `cc` could be passed arguments and fail to run. Closes Homebrew/homebrew#45890. Signed-off-by: Mike McQuaid --- Library/ENV/4.3/cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc index 91707eea97..dc7fecd00f 100755 --- a/Library/ENV/4.3/cc +++ b/Library/ENV/4.3/cc @@ -1,4 +1,4 @@ -#!/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby -W0 +#!/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby -W0 --disable-rubyopt $:.unshift Dir["/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/lib/ruby/{1.8,2.0.0}"].first require "pathname"