ports/devel/gdb/files/patch-opcodes-configure
Sunpoet Po-Chuan Hsieh 4f69896ad9 - Update to 7.4.1
- Fix build with clang

Changes:	http://www.gnu.org/software/gdb/download/ANNOUNCEMENT
PR:		ports/167448
Submitted by:	Luca Pizzamiglio <luca.pizzamiglio@gmail.com> (maintainer)
2012-05-01 15:53:46 +00:00

17 lines
483 B
Text

--- opcodes/configure.orig 2012-04-27 10:20:25.000000000 +0200
+++ opcodes/configure 2012-04-27 10:24:01.000000000 +0200
@@ -11525,7 +11525,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=