diff --git a/Library/Homebrew/shims/linux/super/cc b/Library/Homebrew/shims/linux/super/cc index 836a7cc573..2e3ebb040b 100755 --- a/Library/Homebrew/shims/linux/super/cc +++ b/Library/Homebrew/shims/linux/super/cc @@ -188,11 +188,6 @@ class Cmd val = chuzzle($1) || enum.next path = canonical_path(val) args << "-L#{val}" if keep?(path) && @lset.add?(path) - when /^-R(.+)?/ - # -R is not the correct way to pass rpaths to the linker - path = chuzzle($1) || enum.next - wl = "-Wl," unless mode == :ld - args << "#{wl}-rpath=" if keep?(path) else args << arg end