Package: ocaml / 4.05.0-11

0008-Native-backtraces-don-t-work-on-powerpc-and-sparc.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Stephane Glondu <steph@glondu.net>
Date: Wed, 13 Nov 2013 14:28:16 +0100
Subject: Native backtraces don't work on powerpc and sparc

---
 testsuite/tests/backtrace/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/testsuite/tests/backtrace/Makefile b/testsuite/tests/backtrace/Makefile
index 5df19fc..9ad93c3 100644
--- a/testsuite/tests/backtrace/Makefile
+++ b/testsuite/tests/backtrace/Makefile
@@ -29,7 +29,10 @@ LOCATIONFILTER=grep -oE \
 
 default:
 	@$(MAKE) byte
-	@if $(BYTECODE_ONLY); then $(MAKE) skip ; else $(MAKE) native; fi
+	@case `dpkg-architecture -qDEB_BUILD_ARCH` in \
+	  sparc|powerpc*) : ;; \
+	  *) if $(BYTECODE_ONLY); then $(MAKE) skip ; else $(MAKE) native; fi ;; \
+	esac
 
 .PHONY: byte
 byte: