diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-01-15 20:14:53 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-01-15 20:14:53 +0000 |
commit | 09b6be8237a3a39dc8def7b348a7008bd23951f1 (patch) | |
tree | 27b5a255d3e662c0c0bc064b51c120bf36500981 /graphite | |
parent | fcf118007512b5f311b8786e8d381875bfe48a55 (diff) |
sync configure's -Werror logic with configure.ac
Diffstat (limited to 'graphite')
-rw-r--r-- | graphite/graphite-updatewerror.patch | 11 | ||||
-rw-r--r-- | graphite/makefile.mk | 6 |
2 files changed, 16 insertions, 1 deletions
diff --git a/graphite/graphite-updatewerror.patch b/graphite/graphite-updatewerror.patch new file mode 100644 index 000000000000..6d812b6f254a --- /dev/null +++ b/graphite/graphite-updatewerror.patch @@ -0,0 +1,11 @@ +--- misc/silgraphite-2.3.1.orig/engine/configure ++++ misc/build/silgraphite-2.3.1/engine/configure +@@ -16877,7 +16877,7 @@ + # (note: the flags here are gcc-specific and may fail with other compilers) + build_flags="" + if test "$enable_debug" = yes; then +- build_flags="$build_flags -O0 -g -Wall -Wno-unknown-pragmas -Wparentheses -Werror" ++ build_flags="$build_flags -O0 -g -Wall -Wno-unknown-pragmas -Wparentheses" + elif test "$enable_strict" = yes; then + build_flags="$build_flags -DNDEBUG -Wall -Wno-unknown-pragmas -Wparentheses -Werror" + else diff --git a/graphite/makefile.mk b/graphite/makefile.mk index 1134a29a4403..181d70b27728 100644 --- a/graphite/makefile.mk +++ b/graphite/makefile.mk @@ -47,9 +47,13 @@ all: .IF "$(ENABLE_GRAPHITE)"=="TRUE" TARFILE_NAME=silgraphite-2.3.1 TARFILE_MD5=d35724900f6a4105550293686688bbb3 +#graphite-updatewerror.patch -Werror passed to CFLAGS configure for +#--enable-debug, but not in configure.ac, so update configure to +#match PATCH_FILES=\ graphite-2.3.1.patch \ - graphite-removeobsolete.patch + graphite-removeobsolete.patch \ + graphite-updatewerror.patch # convert line-endings to avoid problems when patching CONVERTFILES=\ |