We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07d2fbf commit b4e93f0Copy full SHA for b4e93f0
Formula/b/binutils.rb
@@ -24,6 +24,8 @@ class Binutils < Formula
24
uses_from_macos "bison" => :build
25
uses_from_macos "zlib"
26
27
+ skip_clean "etc/ld.so.conf"
28
+
29
link_overwrite "bin/dwp"
30
31
def install
@@ -61,9 +63,13 @@ def install
61
63
bin_files = bin.children.select(&:elf?)
62
64
system "strip", *bin_files, *lib.glob("*.a")
65
end
66
67
+ # Allow ld to find brew glibc. A broken symlink falls back to /etc/ld.so.conf
68
+ (prefix/"etc").install_symlink etc/"ld.so.conf" if OS.linux?
69
70
71
test do
72
assert_match "Usage:", shell_output("#{bin}/strings #{bin}/strings")
73
+ assert_predicate prefix/"etc/ld.so.conf", :symlink? if OS.linux?
74
75
0 commit comments