Fix natdynlink detection on sparc
authorStephane Glondu <steph@glondu.net>
Thu, 21 Jun 2012 11:36:19 +0000 (13:36 +0200)
committerStephane Glondu <steph@glondu.net>
Thu, 21 Jun 2012 11:36:19 +0000 (13:36 +0200)
debian/patches/0007-Natdynlink-works-on-powerpc-and-hurd-i386.patch [deleted file]
debian/patches/0007-Natdynlink-works-on-powerpc-hurd-i386-and-sparc.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/0007-Natdynlink-works-on-powerpc-and-hurd-i386.patch b/debian/patches/0007-Natdynlink-works-on-powerpc-and-hurd-i386.patch
deleted file mode 100644 (file)
index d446364..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-From: Stephane Glondu <steph@glondu.net>
-Date: Sat, 16 Apr 2011 23:41:23 +0200
-Subject: Natdynlink works on powerpc and hurd-i386
-
-Rationale: ssreflect used to work with natdynlink on powerpc and hurd
-with ocaml 3.11.2 / coq 8.2...
-
-Note: there is no native compiler for powerpc64! This must be a
-typo...
-
-Bug: http://caml.inria.fr/mantis/view.php?id=5255
-Signed-off-by: Stephane Glondu <steph@glondu.net>
----
- configure |    2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/configure b/configure
-index afca5b0..e1d32dd 100755
---- a/configure
-+++ b/configure
-@@ -630,6 +630,7 @@ if test $withsharedlibs = "yes"; then
-   case "$host" in
-     *-*-cygwin*)                  natdynlink=true;;
-     i[3456]86-*-linux*)           natdynlink=true;;
-+    i[3456]86-*-gnu*)             natdynlink=true;;
-     x86_64-*-linux*)              natdynlink=true;;
-     i[3456]86-*-darwin[89].*)     natdynlink=true;;
-     i[3456]86-*-darwin*)
-@@ -638,6 +639,7 @@ if test $withsharedlibs = "yes"; then
-       fi;;
-     x86_64-*-darwin*)             natdynlink=true;;
-     powerpc64-*-linux*)           natdynlink=true;;
-+    powerpc-*-linux*)             natdynlink=true;;
-     sparc-*-linux*)               natdynlink=true;;
-     i686-*-kfreebsd*)             natdynlink=true;;
-     x86_64-*-kfreebsd*)           natdynlink=true;;
--- 
diff --git a/debian/patches/0007-Natdynlink-works-on-powerpc-hurd-i386-and-sparc.patch b/debian/patches/0007-Natdynlink-works-on-powerpc-hurd-i386-and-sparc.patch
new file mode 100644 (file)
index 0000000..0487ef2
--- /dev/null
@@ -0,0 +1,40 @@
+From: Stephane Glondu <steph@glondu.net>
+Date: Thu, 21 Jun 2012 13:35:22 +0200
+Subject: Natdynlink works on powerpc, hurd-i386 and sparc
+
+Rationale: ssreflect used to work with natdynlink there with ocaml
+3.11.2 / coq 8.2...
+
+Note: on my test machine for sparc (64-bit kernel, 32-bit userland),
+$host is sparc64-unknown-linux-gnu.
+
+Bug: http://caml.inria.fr/mantis/view.php?id=5255
+Signed-off-by: Stephane Glondu <steph@glondu.net>
+---
+ configure |    5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/configure b/configure
+index afca5b0..663eae1 100755
+--- a/configure
++++ b/configure
+@@ -630,6 +630,7 @@ if test $withsharedlibs = "yes"; then
+   case "$host" in
+     *-*-cygwin*)                  natdynlink=true;;
+     i[3456]86-*-linux*)           natdynlink=true;;
++    i[3456]86-*-gnu*)             natdynlink=true;;
+     x86_64-*-linux*)              natdynlink=true;;
+     i[3456]86-*-darwin[89].*)     natdynlink=true;;
+     i[3456]86-*-darwin*)
+@@ -637,8 +638,8 @@ if test $withsharedlibs = "yes"; then
+         natdynlink=true
+       fi;;
+     x86_64-*-darwin*)             natdynlink=true;;
+-    powerpc64-*-linux*)           natdynlink=true;;
+-    sparc-*-linux*)               natdynlink=true;;
++    powerpc*-*-linux*)            natdynlink=true;;
++    sparc*-*-linux*)              natdynlink=true;;
+     i686-*-kfreebsd*)             natdynlink=true;;
+     x86_64-*-kfreebsd*)           natdynlink=true;;
+     i[345]86-*-freebsd*)          natdynlink=true;;
+-- 
index 3e1391f219f5c4a9a3a2075627e413e635d7c842..15eabd4d4caf0fcc83f13ac0c231dde4cb243eb1 100644 (file)
@@ -4,7 +4,7 @@
 0004-Put-manpages-in-section-3o-instead-of-3.patch
 0005-Patch-config.sh-for-installation.patch
 0006-Install-ocamlbuild-as-a-link-on-either-.native-or-.b.patch
-0007-Natdynlink-works-on-powerpc-and-hurd-i386.patch
+0007-Natdynlink-works-on-powerpc-hurd-i386-and-sparc.patch
 0008-Declare-primitive-name-table-as-const-char.patch
 0009-Avoid-multiple-declarations-in-generated-.c-files-in.patch
 0010-Properly-initialize-executable-name-in-caml_startup_.patch