Skip to content

Commit

Permalink
glib: add option for static library creation
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#25505.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information
mitchty authored and adamv committed Feb 14, 2014
1 parent 618df09 commit ab3ebe9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Formula/glib.rb
Expand Up @@ -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'
Expand Down Expand Up @@ -53,6 +54,8 @@ def install
--with-gio-module-dir=#{HOMEBREW_PREFIX}/lib/gio/modules
]

args << '--enable-static' if build.with? 'static'

system "./configure", *args

if build.universal?
Expand Down

0 comments on commit ab3ebe9

Please sign in to comment.