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 <flangy@gmail.com>master
parent
b735c99198
commit
adfebe01de
|
@ -16,6 +16,7 @@ class Nanomsg < Formula
|
||||||
option 'with-test', 'Verify the build with make check'
|
option 'with-test', 'Verify the build with make check'
|
||||||
option 'with-doc', 'Install man pages'
|
option 'with-doc', 'Install man pages'
|
||||||
option 'without-nanocat', 'Do not install nanocat tool'
|
option 'without-nanocat', 'Do not install nanocat tool'
|
||||||
|
option 'with-debug', 'Compile with debug symbols'
|
||||||
|
|
||||||
depends_on 'pkg-config'=> :build
|
depends_on 'pkg-config'=> :build
|
||||||
depends_on :libtool
|
depends_on :libtool
|
||||||
|
@ -30,11 +31,11 @@ class Nanomsg < Formula
|
||||||
|
|
||||||
system './autogen.sh' if build.head?
|
system './autogen.sh' if build.head?
|
||||||
|
|
||||||
args = ["--disable-debug",
|
args = ["--disable-dependency-tracking",
|
||||||
"--disable-dependency-tracking",
|
|
||||||
"--disable-silent-rules",
|
"--disable-silent-rules",
|
||||||
"--prefix=#{prefix}"]
|
"--prefix=#{prefix}"]
|
||||||
args << "--disable-nanocat" if build.without? 'nanocat'
|
args << "--disable-nanocat" if build.without? 'nanocat'
|
||||||
|
args << "--enable-debug" if build.with? 'debug'
|
||||||
args << "--enable-doc" if build.with? 'doc'
|
args << "--enable-doc" if build.with? 'doc'
|
||||||
|
|
||||||
system './configure', *args
|
system './configure', *args
|
||||||
|
|
Loading…
Reference in New Issue