ports/devel/gdb/files/patch-bfd-configure
Michael Scheidell 518a404a99 - update to version 7.4
- adds devel/readline as mandatory dependency (the previous version is not compatible anymore)
- fixes a problem with multihread applications (thanks Lee Thomas)
- fixes a misconfiguration issue if the devel/binutils port is installed

PR:		ports/164521
Submitted by:	maintainer
Approved by:	gabor (mentor, implicit)
2012-01-27 09:38:15 +00:00

17 lines
471 B
Text

--- 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=