diff options
Diffstat (limited to 'devel/gdb/files/patch-bfd-configure')
-rw-r--r-- | devel/gdb/files/patch-bfd-configure | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/devel/gdb/files/patch-bfd-configure b/devel/gdb/files/patch-bfd-configure new file mode 100644 index 000000000000..ed62a66ac0d8 --- /dev/null +++ b/devel/gdb/files/patch-bfd-configure @@ -0,0 +1,17 @@ +--- bfd/configure.orig 2011-03-28 13:18:25.000000000 +0200 ++++ bfd/configure 2012-01-12 16:58:05.000000000 +0100 +@@ -12177,7 +12177,13 @@ + + # Enable -Werror by default when using gcc + if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then +- ERROR_ON_WARNING=yes ++ if test "${CC}" = clang ; then ++ echo "clang compiler - disabling -Werror" ++ ERROR_ON_WARNING=no ++ else ++ echo "gcc compiler - enabling -Werror" ++ ERROR_ON_WARNING=yes ++ fi + fi + + NO_WERROR= |