]> git.pld-linux.org Git - packages/nginx.git/commitdiff
- disable -Werror
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 14 Oct 2012 18:33:17 +0000 (20:33 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 14 Oct 2012 18:33:17 +0000 (20:33 +0200)
nginx-no-Werror.patch [new file with mode: 0644]
nginx.spec

diff --git a/nginx-no-Werror.patch b/nginx-no-Werror.patch
new file mode 100644 (file)
index 0000000..aa530d9
--- /dev/null
@@ -0,0 +1,12 @@
+--- auto/cc/gcc.orig   2007-03-22 08:34:53.000000000 -0600
++++ auto/cc/gcc        2007-03-22 08:58:47.000000000 -0600
+@@ -172,7 +172,8 @@
+ # stop on warning
+-CFLAGS="$CFLAGS -Werror"
++# This combined with FORTIFY_SOURCE=2 option causes nginx to not compile.
++#CFLAGS="$CFLAGS -Werror"
+ # debug
+ CFLAGS="$CFLAGS -g"
index 7681095d34f90a0b7463030dc78522e879d43093..ece52c610d8edc8efc0e87e4e3330647caddc3cf 100644 (file)
@@ -47,6 +47,7 @@ Source14:     %{name}-standard.conf
 Source15:      %{name}-standard.monitrc
 Source16:      %{name}-standard.init
 Source17:      %{name}-mime.types.sh
+Patch0:                nginx-no-Werror.patch
 URL:           http://nginx.net/
 BuildRequires: mailcap
 BuildRequires: openssl-devel
@@ -209,6 +210,7 @@ Plik monitrc do monitorowania serwera WWW nginx.
 
 %prep
 %setup -q
+%patch0 -p1
 
 # build mime.types.conf
 #sh %{SOURCE17} /etc/mime.types
This page took 0.054208 seconds and 4 git commands to generate.