summaryrefslogtreecommitdiffstats
path: root/debian/patches/libstdc++-nothumb-check.diff
blob: 6c665a2ebd4cec12797317f981e9a57b3cd04db7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# DP: Don't run the libstdc++-v3 testsuite in thumb mode on armel

Index: testsuite/Makefile.in
===================================================================
--- a/src/libstdc++-v3/testsuite/Makefile.in	(revision 156820)
+++ b/src/libstdc++-v3/testsuite/Makefile.in	(working copy)
@@ -583,6 +583,8 @@
 	srcdir=`$(am__cd) $(srcdir) && pwd`; export srcdir; \
 	EXPECT=$(EXPECT); export EXPECT; \
 	runtest=$(RUNTEST); \
+	runtestflags="`echo '$(RUNTESTFLAGS)' | sed 's/,-marm/-marm/'`"; \
+	case "$$runtestflags" in *\\{\\}) runtestflags=; esac; \
 	if [ -z "$$runtest" ]; then runtest=runtest; fi; \
 	tool=libstdc++; \
 	dirs=; \
@@ -590,7 +592,7 @@
 	  normal0) \
 	    if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
 	      $$runtest $(AM_RUNTESTFLAGS) $(RUNTESTDEFAULTFLAGS) \
-			$(RUNTESTFLAGS) abi.exp; \
+			$$runtestflags abi.exp; \
 	    else echo "WARNING: could not find \`runtest'" 1>&2; :;\
 	    fi; \
 	    dirs="`cd $$srcdir; echo [013-9][0-9]_*/* [abep]*/*`";; \
@@ -605,11 +607,11 @@
 	if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
 	  if [ -n "$$dirs" ]; then \
 	    $$runtest $(AM_RUNTESTFLAGS) $(RUNTESTDEFAULTFLAGS) \
-		    $(RUNTESTFLAGS) \
+		    $$runtestflags \
 		    "conformance.exp=`echo $$dirs | sed 's/ /* /g;s/$$/*/'`"; \
 	  else \
 	    $$runtest $(AM_RUNTESTFLAGS) $(RUNTESTDEFAULTFLAGS) \
-		    $(RUNTESTFLAGS); \
+		    $$runtestflags; \
 	  fi; \
 	else echo "WARNING: could not find \`runtest'" 1>&2; :;\
 	fi