Fix asmcomp tests on Hurd (Closes: #661716)
authorStephane Glondu <steph@glondu.net>
Tue, 27 Mar 2012 09:44:29 +0000 (11:44 +0200)
committerStephane Glondu <steph@glondu.net>
Thu, 19 Apr 2012 06:33:42 +0000 (08:33 +0200)
debian/patches/0012-Fix-asmcomp-tests-on-Hurd.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/0012-Fix-asmcomp-tests-on-Hurd.patch b/debian/patches/0012-Fix-asmcomp-tests-on-Hurd.patch
new file mode 100644 (file)
index 0000000..1a9b623
--- /dev/null
@@ -0,0 +1,25 @@
+From: Pino Toscano <pino@debian.org>
+Date: Tue, 27 Mar 2012 11:41:02 +0200
+Subject: Fix asmcomp tests on Hurd
+
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=661716
+Author: Pino Toscano <pino@debian.org>
+Signed-off-by: Stephane Glondu <steph@glondu.net>
+---
+ testsuite/tests/asmcomp/i386.S |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/testsuite/tests/asmcomp/i386.S b/testsuite/tests/asmcomp/i386.S
+index fc75b1f..cb78db8 100644
+--- a/testsuite/tests/asmcomp/i386.S
++++ b/testsuite/tests/asmcomp/i386.S
+@@ -15,7 +15,7 @@
+ /* Linux with ELF binaries does not prefix identifiers with _.
+    Linux with a.out binaries, FreeBSD, and NextStep do. */
+-#ifdef SYS_linux_elf
++#if defined(SYS_linux_elf) || defined(SYS_gnu)
+ #define G(x) x
+ #define FUNCTION_ALIGN 16
+ #else
+-- 
index 43d48de2c0c44050745a81407658be91b8d9c3c4..7d15357fef545bfdc2902908bd2b5bf419f7adb2 100644 (file)
@@ -9,3 +9,4 @@
 0009-Avoid-multiple-declarations-in-generated-.c-files-in.patch
 0010-Properly-initialize-executable-name-in-caml_startup_.patch
 0011-Embed-bytecode-in-C-object-when-using-custom.patch
+0012-Fix-asmcomp-tests-on-Hurd.patch