gdb: don't install subdirectories shared with binutils
Rather than removing conflicting items (and bystanders) afterwards, avoid installing them in the first place. (Patching Makefile needs to happen after './configure' but before 'make install'.) Fixes #10179. Closes #10407. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
8d28cb8a86
commit
cadde11636
1 changed files with 4 additions and 6 deletions
|
@ -69,13 +69,11 @@ class Gdb < Formula
|
|||
|
||||
system "./configure", *args
|
||||
system "make"
|
||||
system "make", "install"
|
||||
|
||||
# Remove conflicting items with binutils
|
||||
rm_rf include
|
||||
rm_rf lib
|
||||
rm_rf share/"locale"
|
||||
rm_rf share/"info"
|
||||
# Don't install bfd or opcodes, as they are provided by binutils
|
||||
inreplace ["bfd/Makefile", "opcodes/Makefile"], /^install:/, "dontinstall:"
|
||||
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
|
|
Loading…
Reference in a new issue