shims/linux/super/cc: Do not fix gcc -R for Linux

This commit is contained in:
Shaun Jackman 2018-05-22 11:09:02 -07:00
parent 434e8d8e2f
commit c507408fd4

View File

@ -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