From c507408fd4c19ac0501f150bc9f4581cb2947f36 Mon Sep 17 00:00:00 2001 From: Shaun Jackman Date: Tue, 22 May 2018 11:09:02 -0700 Subject: [PATCH] shims/linux/super/cc: Do not fix gcc -R for Linux --- Library/Homebrew/shims/linux/super/cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Library/Homebrew/shims/linux/super/cc b/Library/Homebrew/shims/linux/super/cc index 836a7cc57..2e3ebb040 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