From adfebe01debf6b17aeb221cd1ed9da177a89e42b Mon Sep 17 00:00:00 2001 From: Alexey Ivanov Date: Tue, 1 Oct 2013 12:54:25 -0700 Subject: [PATCH] nanomsg: enable optional debug build Considering alpha stage of this library ability to build with debug symbols is useful. Closes Homebrew/homebrew#22974. Signed-off-by: Adam Vandenberg --- Formula/nanomsg.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Formula/nanomsg.rb b/Formula/nanomsg.rb index ec8c5051127..e475cd2a26c 100644 --- a/Formula/nanomsg.rb +++ b/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