Skip to content

Commit e72a0ad

Browse files
authored
Merge pull request #215718 from Homebrew/gaul-linux-arm-build
gaul: regenerate configure for linux build as well
2 parents 5520120 + df08d4f commit e72a0ad

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

Formula/g/gaul.rb

+9-12
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,17 @@ class Gaul < Formula
2323
sha256 cellar: :any_skip_relocation, x86_64_linux: "86d80af0c4bdef2186dccac01b0046ca2ca2c81c484b7c5f279553b2e190b53c"
2424
end
2525

26-
on_macos do
27-
depends_on "autoconf" => :build
28-
depends_on "automake" => :build
29-
depends_on "libtool" => :build
30-
end
26+
depends_on "autoconf" => :build
27+
depends_on "automake" => :build
28+
depends_on "libtool" => :build
3129

3230
def install
33-
# Run autoreconf on macOS to rebuild configure script so that it doesn't try
34-
# to build with a flat namespace.
35-
system "autoreconf", "--force", "--verbose", "--install" if OS.mac?
36-
system "./configure", "--disable-dependency-tracking",
37-
"--disable-debug",
38-
"--disable-g",
39-
"--prefix=#{prefix}"
31+
# Run autoreconf to regenerate the configure script and update outdated macros.
32+
# This ensures that the build system is properly configured on both macOS
33+
# (avoiding issues like flat namespace conflicts) and Linux (where outdated
34+
# config scripts may fail to detect the correct build type).
35+
system "autoreconf", "--force", "--verbose", "--install"
36+
system "./configure", "--disable-g", *std_configure_args
4037
system "make", "install"
4138
end
4239
end

0 commit comments

Comments
 (0)