diff options
author | Simon Dawson <spdawson@gmail.com> | 2013-11-21 17:19:40 +0000 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2013-11-22 12:19:57 +0100 |
commit | 2b2c6579575bc87bf3e6f0d9a5ba1f50561fa101 (patch) | |
tree | cc5879b0e9e1ec6d339acd5436a7e5f3c9a6d766 /package/libroxml/libroxml-0002-wno-unused-result.patch | |
parent | 2b468f1bd94d824ee32d4351d548955ae1e05435 (diff) |
libroxml: fix avr32 build failure
The -Wno-unused-result option is not understood by the version of gcc used by the
avr32 toolchain. Remove the option from the compilation flags.
Fixes build failures such as the following.
http://autobuild.buildroot.net/results/e22/e22d94fca3eabb4e54d82af04319f17ad8e10c20/
The single existing patch for libroxml has been renamed to include a numerical
component for application order sorting. The existing patch has also been updated
to apply without fuzz.
Signed-off-by: Simon Dawson <spdawson@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/libroxml/libroxml-0002-wno-unused-result.patch')
-rw-r--r-- | package/libroxml/libroxml-0002-wno-unused-result.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/package/libroxml/libroxml-0002-wno-unused-result.patch b/package/libroxml/libroxml-0002-wno-unused-result.patch new file mode 100644 index 000000000..406bf3c24 --- /dev/null +++ b/package/libroxml/libroxml-0002-wno-unused-result.patch @@ -0,0 +1,21 @@ +The -Wno-unused-result option is not understood by the version of gcc used by the +avr32 toolchain. Remove the option from the compilation flags. + +Fixes build failures such as the following. + + http://autobuild.buildroot.net/results/e22/e22d94fca3eabb4e54d82af04319f17ad8e10c20/ + +Signed-off-by: Simon Dawson <spdawson@gmail.com> + +diff -Nurp a/Makefile b/Makefile +--- a/Makefile 2013-11-21 17:13:17.679388374 +0000 ++++ b/Makefile 2013-11-21 17:13:35.219299157 +0000 +@@ -46,7 +46,7 @@ DEFINES = -DIGNORE_EMPTY_TEXT_NODES + + # options + override CPPFLAGS += -Iinc/ +-override CFLAGS += $(OPTIM) -fPIC -Wall -Wextra -Wno-unused-parameter -Wno-unused-result -Iinc/ $(DEFINES) ++override CFLAGS += $(OPTIM) -fPIC -Wall -Wextra -Wno-unused-parameter -Iinc/ $(DEFINES) + override LDFLAGS += + + ifeq ("$(OS)", "Darwin") |