summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wever <weeve@gentoo.org>2003-09-07 02:48:43 +0000
committerJason Wever <weeve@gentoo.org>2003-09-07 02:48:43 +0000
commit73bd8aaaea20e4a75e51462a0fb0cca8f8502b6a (patch)
treef8726bec0382b2ae94e7a61945e092a369317378 /dev-lang/ocaml/files
parentrepoman: whitespace cleanup (diff)
downloadgentoo-2-73bd8aaaea20e4a75e51462a0fb0cca8f8502b6a.tar.gz
gentoo-2-73bd8aaaea20e4a75e51462a0fb0cca8f8502b6a.tar.bz2
gentoo-2-73bd8aaaea20e4a75e51462a0fb0cca8f8502b6a.zip
Added patch and myconf fix to fix bug #23767.
Diffstat (limited to 'dev-lang/ocaml/files')
-rw-r--r--dev-lang/ocaml/files/ocaml-3.06-sparc-configure.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-lang/ocaml/files/ocaml-3.06-sparc-configure.patch b/dev-lang/ocaml/files/ocaml-3.06-sparc-configure.patch
new file mode 100644
index 000000000000..096b5bd8ca13
--- /dev/null
+++ b/dev-lang/ocaml/files/ocaml-3.06-sparc-configure.patch
@@ -0,0 +1,39 @@
+--- ocaml/configure 2003/01/09 12:01:51 1.183
++++ ocaml/configure 2003/03/10 17:04:00 1.184
+@@ -391,17 +391,25 @@ esac
+
+ # Determine alignment constraints
+
+-sh ./runtest dblalign.c
+-case $? in
+- 0) echo "Doubles can be word-aligned."
+- echo "#undef ARCH_ALIGN_DOUBLE" >> m.h;;
+- 1) echo "Doubles must be doubleword-aligned."
+- echo "#define ARCH_ALIGN_DOUBLE" >> m.h;;
+- *) echo "Something went wrong during alignment determination for doubles."
+- echo "I'm going to assume this architecture has alignment constraints over doubles."
+- echo "That's a safe bet: Objective Caml will work even if"
+- echo "this architecture has actually no alignment constraints."
+- echo "#define ARCH_ALIGN_DOUBLE" >> m.h;;
++case "$host" in
++ sparc-*-*)
++ # On Sparc V9 with certain versions of gcc, determination of double
++ # alignment is not reliable (PR#1521), hence force it
++ echo "Doubles must be doubleword-aligned."
++ echo "#define ARCH_ALIGN_DOUBLE" >> m.h;;
++ *)
++ sh ./runtest dblalign.c
++ case $? in
++ 0) echo "Doubles can be word-aligned."
++ echo "#undef ARCH_ALIGN_DOUBLE" >> m.h;;
++ 1) echo "Doubles must be doubleword-aligned."
++ echo "#define ARCH_ALIGN_DOUBLE" >> m.h;;
++ *) echo "Something went wrong during alignment determination for doubles."
++ echo "I'm going to assume this architecture has alignment constraints over doubles."
++ echo "That's a safe bet: Objective Caml will work even if"
++ echo "this architecture has actually no alignment constraints."
++ echo "#define ARCH_ALIGN_DOUBLE" >> m.h;;
++ esac;;
+ esac
+
+ if $int64_native; then