Merge pull request #10652 from danielnachun/revert-gcc-linkage-fix
cc: revert change to remove linker flag
This commit is contained in:
commit
3ff5795ae1
@ -303,12 +303,6 @@ class Cmd
|
|||||||
end
|
end
|
||||||
|
|
||||||
def ldflags_linux(args)
|
def ldflags_linux(args)
|
||||||
# Remove $HOMEBREW_PREFIX/lib from the args because it is already provided by the GCC specs,
|
|
||||||
# and breaks linkage to GCC runtime libraries.
|
|
||||||
# Don't remove it when using clang, which does not use specs like GCC does.
|
|
||||||
# https://github.com/Homebrew/brew/pull/10606
|
|
||||||
args.pop() if tool !~ /^clang/
|
|
||||||
|
|
||||||
unless mode == :ld
|
unless mode == :ld
|
||||||
wl = "-Wl,"
|
wl = "-Wl,"
|
||||||
args << "-B#{@opt}/glibc/lib"
|
args << "-B#{@opt}/glibc/lib"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user