mirror of
https://git.freebsd.org/ports.git
synced 2025-07-08 04:49:17 -04:00
- 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)
17 lines
483 B
Text
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=
|