summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-01-08 07:26:52 (GMT)
committerAlexey Neyman <stilor@att.net>2017-01-10 18:39:37 (GMT)
commit4a138d84078ab89a8f8bc636d5c4260951d4ee11 (patch)
tree1392cf721c2edeeebcb372e7d8c0a533e9cab8c3
parent25bc99f4d084780ca9d81a41213fe982377fc038 (diff)
Shut clang's warning that confuses configure.
Warning causes gdb's configure to not detect <limit.h> declarations of LONG_MIN/MAX. Found-by: Kirill Smirnov <kirill.k.smirnov@gmail.com> Signed-off-by: Alexey Neyman <stilor@att.net>
-rw-r--r--scripts/build/debug/300-gdb.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh
index ba13591..3d3af7b 100644
--- a/scripts/build/debug/300-gdb.sh
+++ b/scripts/build/debug/300-gdb.sh
@@ -105,6 +105,12 @@ do_debug_gdb_build() {
CC_for_gdb+=" -static"
LD_for_gdb+=" -static"
fi
+ case "${CT_HOST}" in
+ *darwin*)
+ # FIXME: Really, we should be testing for host compiler being clang.
+ CC_for_gdb+=" -Qunused-arguments"
+ ;;
+ esac
# Fix up whitespace. Some older GDB releases (e.g. 6.8a) get confused if there
# are multiple consecutive spaces: sub-configure scripts replace them with a