diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-02-13 18:57:00 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-02-14 18:50:07 +0000 |
commit | e8fa24936ac303abe0978950898625fca30b17ec (patch) | |
tree | 192ac8fcc535b189065ca35fce455c67519d4a1e /main/elfutils/no-werror.patch | |
parent | 69a9add8425a3ac8a4ce5294354a543c63d35e39 (diff) | |
download | aports-e8fa24936ac303abe0978950898625fca30b17ec.tar.bz2 aports-e8fa24936ac303abe0978950898625fca30b17ec.tar.xz |
main/elfutils: move from testing
Diffstat (limited to 'main/elfutils/no-werror.patch')
-rw-r--r-- | main/elfutils/no-werror.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/main/elfutils/no-werror.patch b/main/elfutils/no-werror.patch new file mode 100644 index 0000000000..ddf963244a --- /dev/null +++ b/main/elfutils/no-werror.patch @@ -0,0 +1,32 @@ +diff --git a/config/eu.am b/config/eu.am +index 8fe1e25..afeb095 100644 +--- a/config/eu.am ++++ b/config/eu.am +@@ -71,7 +71,7 @@ AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \ + -Wold-style-definition -Wstrict-prototypes \ + $(LOGICAL_OP_WARNING) $(DUPLICATED_COND_WARNING) \ + $(NULL_DEREFERENCE_WARNING) $(IMPLICIT_FALLTHROUGH_WARNING) \ +- $(if $($(*F)_no_Werror),,-Werror) \ ++ $(if $($(*F)_no_Werror),,$(WERROR)) \ + $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \ + $(if $($(*F)_no_Wstack_usage),,$(STACK_USAGE_WARNING)) \ + $($(*F)_CFLAGS) +diff --git a/configure.ac b/configure.ac +index 4549906..6a74a06 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -57,6 +57,14 @@ AC_CONFIG_FILES([elfutils.spec:config/elfutils.spec.in]) + + AC_CANONICAL_HOST + ++AC_ARG_ENABLE(werror, ++[AS_HELP_STRING([--disable-werror], ++ [turn off -Werror @<:@default=enabled@:>@])]) ++if test "x$enable_werror" != "xno"; then ++ WERROR="-Werror" ++fi ++AC_SUBST(WERROR) ++ + AC_ARG_ENABLE(deterministic-archives, + [AS_HELP_STRING([--enable-deterministic-archives], + [ar and ranlib default to -D behavior])], [ |