aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/pkg-config.rb15
1 files changed, 11 insertions, 4 deletions
diff --git a/Library/Formula/pkg-config.rb b/Library/Formula/pkg-config.rb
index 5449007c0..8e47b2b00 100644
--- a/Library/Formula/pkg-config.rb
+++ b/Library/Formula/pkg-config.rb
@@ -21,10 +21,17 @@ class PkgConfig < Formula
/usr/local/lib/pkgconfig
/usr/lib/pkgconfig
].uniq
- system "./configure", "--disable-debug",
- "--prefix=#{prefix}",
- "--with-pc-path=#{paths*':'}",
- "--with-internal-glib"
+
+ args = %W[
+ --disable-debug
+ --prefix=#{prefix}
+ --with-pc-path=#{paths*':'}
+ --with-internal-glib
+ ]
+ args << "CC=#{ENV.cc} #{ENV.cflags}" unless MacOS::CLT.installed?
+
+ system "./configure", *args
+
system "make"
system "make check"
system "make install"