[packages/nginx] add debug bcond

glen glen at pld-linux.org
Sun May 3 20:19:47 CEST 2015


commit 0aa7dc69a77fd71a1078c4751d40eeb3fcca57b4
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun May 3 21:14:27 2015 +0300

    add debug bcond

 nginx.spec | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/nginx.spec b/nginx.spec
index c6773d8..bb06b92 100644
--- a/nginx.spec
+++ b/nginx.spec
@@ -21,6 +21,7 @@
 %bcond_with	http_browser	# header "User-agent" parser
 %bcond_with	rtmp		# rtmp support
 %bcond_with	threads		# thread pool support
+%bcond_with	debug		# build with debug enabled: http://nginx.org/en/docs/debugging_log.html
 %bcond_without	auth_request	# auth_request module
 
 %ifarch x32
@@ -313,7 +314,7 @@ build() {
 	--with-cc="%{__cc}" \
 	--with-cc-opt="%{rpmcflags}" \
 	--with-ld-opt="%{rpmldflags}" \
-	%{?debug:--with-debug} \
+	%{?with_debug:--with-debug} \
 	"$@"
 %{__make}
 }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nginx.git/commitdiff/0aa7dc69a77fd71a1078c4751d40eeb3fcca57b4



More information about the pld-cvs-commit mailing list