aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAlexey Ivanov2013-10-01 12:54:25 -0700
committerAdam Vandenberg2013-10-26 12:08:36 -0700
commitbec702912172bf9a0a886004697d87ac4c85df01 (patch)
tree2f6d471d968428ea12bb53a7edd86665c7abb8d9 /Library
parent512e05bebeec754416f5bb7b9aa0f95cf5c1d963 (diff)
downloadhomebrew-bec702912172bf9a0a886004697d87ac4c85df01.tar.bz2
nanomsg: enable optional debug build
Considering alpha stage of this library ability to build with debug symbols is useful. Closes #22974. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/nanomsg.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Formula/nanomsg.rb b/Library/Formula/nanomsg.rb
index ec8c50511..e475cd2a2 100644
--- a/Library/Formula/nanomsg.rb
+++ b/Library/Formula/nanomsg.rb
@@ -16,6 +16,7 @@ class Nanomsg < Formula
option 'with-test', 'Verify the build with make check'
option 'with-doc', 'Install man pages'
option 'without-nanocat', 'Do not install nanocat tool'
+ option 'with-debug', 'Compile with debug symbols'
depends_on 'pkg-config'=> :build
depends_on :libtool
@@ -30,11 +31,11 @@ class Nanomsg < Formula
system './autogen.sh' if build.head?
- args = ["--disable-debug",
- "--disable-dependency-tracking",
+ args = ["--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"]
args << "--disable-nanocat" if build.without? 'nanocat'
+ args << "--enable-debug" if build.with? 'debug'
args << "--enable-doc" if build.with? 'doc'
system './configure', *args