glib: add option for static library creation
Closes Homebrew/homebrew#25505. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
618df09967
commit
ab3ebe9269
1 changed files with 3 additions and 0 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue