aboutsummaryrefslogtreecommitdiffstats
path: root/main/open-vm-tools/0002-open-vm-tools-Add-disable-werror-configure-option.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-11-18 14:39:50 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-11-18 14:40:52 +0000
commitef2dec6c3ea0c808bda31401d8db1a429bd7422e (patch)
tree6dfc3e4e4aff9770a5aba1defd285a19b3e617aa /main/open-vm-tools/0002-open-vm-tools-Add-disable-werror-configure-option.patch
parent276a4314d1785bb036f4dd62f6b22fb32af33b8f (diff)
downloadaports-ef2dec6c3ea0c808bda31401d8db1a429bd7422e.tar.bz2
aports-ef2dec6c3ea0c808bda31401d8db1a429bd7422e.tar.xz
main/open-vm-tools: upgrade to 10.0.0_p3000743
Diffstat (limited to 'main/open-vm-tools/0002-open-vm-tools-Add-disable-werror-configure-option.patch')
-rw-r--r--main/open-vm-tools/0002-open-vm-tools-Add-disable-werror-configure-option.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/main/open-vm-tools/0002-open-vm-tools-Add-disable-werror-configure-option.patch b/main/open-vm-tools/0002-open-vm-tools-Add-disable-werror-configure-option.patch
new file mode 100644
index 0000000000..0c989cd7e5
--- /dev/null
+++ b/main/open-vm-tools/0002-open-vm-tools-Add-disable-werror-configure-option.patch
@@ -0,0 +1,39 @@
+From 854943f4c0df6ae015fc1852c9aee4ccca0008fd Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Thu, 5 Nov 2015 13:19:20 +0000
+Subject: [PATCH 02/11] open-vm-tools: Add --disable-werror configure option
+
+Packagers will normally not want the -Werror compile option as it may
+break compilation depending on the platform specific warnings.
+
+Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
+---
+ open-vm-tools/configure.ac | 12 +++++++++++-
+ 1 file changed, 11 insertions(+), 1 deletion(-)
+
+diff --git a/open-vm-tools/configure.ac b/open-vm-tools/configure.ac
+index ebdf17c..810555c 100644
+--- a/open-vm-tools/configure.ac
++++ b/open-vm-tools/configure.ac
+@@ -935,7 +935,17 @@ AC_C_VOLATILE
+
+ ### General flags / actions
+ CFLAGS="$CFLAGS -Wall"
+-CFLAGS="$CFLAGS -Werror"
++AC_ARG_ENABLE(
++ werror,
++ AS_HELP_STRING(
++ [--disable-werror],
++ [disable compilation with -Werror]),
++ [enable_werror="$enableval"],
++ [enable_werror="yes"])
++
++if test "$enable_werror" = "yes"; then
++ CFLAGS="$CFLAGS -Werror"
++fi
+
+ # -Wno-unknown-pragmas is due to gcc not understanding '#pragma ident'
+ # in Xlib.h on OpenSolaris.
+--
+2.6.3
+