From 17e54358cc0a870b31aec78f48c5f8374ee58424 Mon Sep 17 00:00:00 2001 From: Bart Jacobs Date: Thu, 18 Feb 2016 22:18:42 +0100 Subject: [PATCH] Guard unwind test against old OS X versions --- testsuite/tests/unwind/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/testsuite/tests/unwind/Makefile b/testsuite/tests/unwind/Makefile index 66deadb5c..686b808f2 100644 --- a/testsuite/tests/unwind/Makefile +++ b/testsuite/tests/unwind/Makefile @@ -1,6 +1,8 @@ +# The -keep_dwarf_unwind option of ld was introduced in ld version 224.1. +# (The last released version where it is not supported is version 136.) default: @printf " ... testing 'unwind_test':" - @if [ $(SYSTEM) = macosx ] && ! $(BYTECODE_ONLY); then \ + @if [ $(SYSTEM) = macosx ] && ! $(BYTECODE_ONLY) && [[ `ld -v 2>&1` =~ ld64-([0-9]*) ]] && [[ 224 -le $${BASH_REMATCH[1]} ]]; then \ $(MAKE) native_macosx_tests; \ else \ echo " => skipped"; \