From ab3ebe926926e4136a2a3548a047cfc1954032d0 Mon Sep 17 00:00:00 2001 From: Mitch Tishmack Date: Fri, 27 Dec 2013 19:38:48 -0600 Subject: [PATCH] glib: add option for static library creation Closes Homebrew/homebrew#25505. Signed-off-by: Adam Vandenberg --- Formula/glib.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Formula/glib.rb b/Formula/glib.rb index ade76d0667f..2a61eb0936a 100644 --- a/Formula/glib.rb +++ b/Formula/glib.rb @@ -7,6 +7,7 @@ class Glib < Formula option :universal option 'test', 'Build a debug build and run tests. NOTE: Not all tests succeed yet' + option 'with-static', 'Build glib with a static archive.' depends_on 'pkg-config' => :build depends_on 'gettext' @@ -53,6 +54,8 @@ class Glib < Formula --with-gio-module-dir=#{HOMEBREW_PREFIX}/lib/gio/modules ] + args << '--enable-static' if build.with? 'static' + system "./configure", *args if build.universal?