aboutsummaryrefslogtreecommitdiffstats
path: root/testing/elfutils/no-werror.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-02-13 17:05:57 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-02-14 18:50:06 +0000
commit69a9add8425a3ac8a4ce5294354a543c63d35e39 (patch)
tree1cb92f6d6bf1e7d89587d0a66e85fbc74be41372 /testing/elfutils/no-werror.patch
parent7fac29dc3dc6a41096bf5f204c541b70f967291e (diff)
downloadaports-69a9add8425a3ac8a4ce5294354a543c63d35e39.tar.gz
aports-69a9add8425a3ac8a4ce5294354a543c63d35e39.tar.bz2
aports-69a9add8425a3ac8a4ce5294354a543c63d35e39.tar.xz
testing/elfutils: new aport
A collection of utilities and DSOs to handle ELF files and DWARF data http://elfutils.org/
Diffstat (limited to 'testing/elfutils/no-werror.patch')
-rw-r--r--testing/elfutils/no-werror.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/elfutils/no-werror.patch b/testing/elfutils/no-werror.patch
new file mode 100644
index 0000000000..ddf963244a
--- /dev/null
+++ b/testing/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])], [